Refactor OAuth provider linking and unlinking logic into a dedicated service; enhance error handling and logging throughout the application; improve sound management and scanning services with better file handling and unique naming; implement centralized error and logging services for consistent API responses and application-wide logging configuration.

This commit is contained in:
JSC
2025-07-05 13:07:06 +02:00
parent 41fc197f4c
commit e2fe451e5a
17 changed files with 758 additions and 352 deletions

View File

@@ -98,7 +98,7 @@ class SchedulerService:
)
else:
logger.error(
f"Daily credit refill failed: {result['message']}"
f"Daily credit refill failed: {result['message']}",
)
except Exception as e:
@@ -122,7 +122,7 @@ class SchedulerService:
logger.debug("Sound scan completed: no new files found")
else:
logger.error(
f"Sound scan failed: {result.get('error', 'Unknown error')}"
f"Sound scan failed: {result.get('error', 'Unknown error')}",
)
except Exception as e: