diff --git a/backend/app/logging/setup_logging.py b/backend/app/logging/setup_logging.py index 0eedecaa9..e8f6b38b9 100644 --- a/backend/app/logging/setup_logging.py +++ b/backend/app/logging/setup_logging.py @@ -237,7 +237,9 @@ def emit(self, record: logging.LogRecord) -> None: """ # Get the appropriate module name module_name = record.name - if "." in module_name: + if module_name.startswith("uvicorn"): + module_name = "uvicorn" + elif "." in module_name: module_name = module_name.split(".")[-1] # Create a message that includes the original module in the format diff --git a/docs/backend/backend_python/openapi.json b/docs/backend/backend_python/openapi.json index fc71e037a..795b415be 100644 --- a/docs/backend/backend_python/openapi.json +++ b/docs/backend/backend_python/openapi.json @@ -2073,119 +2073,6 @@ ], "title": "DeleteFoldersResponse" }, - "app__schemas__folders__ErrorResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success", - "default": false - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - } - }, - "type": "object", - "title": "ErrorResponse" - }, - "app__schemas__face_clusters__ErrorResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success", - "default": false - }, - "message": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Message" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - } - }, - "type": "object", - "title": "ErrorResponse" - }, - "app__schemas__images__ErrorResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success", - "default": false - }, - "message": { - "type": "string", - "title": "Message" - }, - "error": { - "type": "string", - "title": "Error" - } - }, - "type": "object", - "required": [ - "message", - "error" - ], - "title": "ErrorResponse" - }, - "app__schemas__user_preferences__ErrorResponse": { - "properties": { - "success": { - "type": "boolean", - "title": "Success" - }, - "error": { - "type": "string", - "title": "Error" - }, - "message": { - "type": "string", - "title": "Message" - } - }, - "type": "object", - "required": [ - "success", - "error", - "message" - ], - "title": "ErrorResponse", - "description": "Error response model" - }, "FaceSearchRequest": { "properties": { "path": { diff --git a/sync-microservice/app/logging/setup_logging.py b/sync-microservice/app/logging/setup_logging.py index fad815908..f294506d3 100644 --- a/sync-microservice/app/logging/setup_logging.py +++ b/sync-microservice/app/logging/setup_logging.py @@ -245,7 +245,9 @@ def emit(self, record: logging.LogRecord) -> None: """ # Get the appropriate module name module_name = record.name - if "." in module_name: + if module_name.startswith("uvicorn"): + module_name = "uvicorn" + elif "." in module_name: module_name = module_name.split(".")[-1] # Create a message that includes the original module in the format