added logging

This commit is contained in:
2025-11-01 16:29:07 +01:00
parent 33aeac0141
commit 6cdb2eb1e1
3 changed files with 130 additions and 90 deletions

View File

@@ -46,8 +46,8 @@ from src.server.services.websocket_service import get_websocket_service
@asynccontextmanager
async def lifespan(app: FastAPI):
"""Manage application lifespan (startup and shutdown)."""
# Setup logging first
logger = setup_logging()
# Setup logging first with DEBUG level
logger = setup_logging(log_level="DEBUG")
# Startup
try:
@@ -191,5 +191,5 @@ if __name__ == "__main__":
host="127.0.0.1",
port=8000,
reload=True,
log_level="info"
log_level="debug"
)