feat: Enhance logging configuration to support dynamic log levels

This commit is contained in:
Lorenzo Venerandi
2026-03-01 17:36:29 +01:00
parent 43d3b96364
commit fbc757f0a6
4 changed files with 43 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ async def lifespan(app: FastAPI):
config = get_config()
# Initialize logging
initialize_logging()
initialize_logging(log_level=config.log_level)
app_logger = get_app_logger()
# Initialize database and run pending migrations before accepting traffic