Bug: Incorrect log formatting
After introducing the snowplow
external dependency in !233 (merged), we started getting duplicate log messages with incorrect formatting.
Example:
INFO:uvicorn.error:Started server process [81841]
{"logger": "uvicorn.error", "level": "info", "message": "Started server process [81841]", "type": "mlops", "stage": "main", "timestamp": "2023-08-11T13:13:11.055216Z"}
INFO:uvicorn.error:Waiting for application startup.
{"logger": "uvicorn.error", "level": "info", "message": "Waiting for application startup.", "type": "mlops", "stage": "main", "timestamp": "2023-08-11T13:13:11.055353Z"}
INFO:uvicorn.error:Metrics HTTP server running on http://0.0.0.0:8082
{"logger": "uvicorn.error", "level": "info", "message": "Metrics HTTP server running on http://0.0.0.0:8082", "type": "mlops", "stage": "main", "timestamp": "2023-08-11T13:13:11.366901Z"}
INFO:uvicorn.error:Application startup complete.
{"logger": "uvicorn.error", "level": "info", "message": "Application startup complete.", "type": "mlops", "stage": "main", "timestamp": "2023-08-11T13:13:16.374111Z"}
INFO:uvicorn.error:Uvicorn running on http://0.0.0.0:5052 (Press CTRL+C to quit)
{"logger": "uvicorn.error", "level": "info", "message": "Uvicorn running on http://0.0.0.0:5052 (Press CTRL+C to quit)", "type": "mlops", "stage": "main", "timestamp": "2023-08-11T13:13:16.374835Z"}
Edited by Alexander Chueshev