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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user