We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fa037 commit 0a321c3Copy full SHA for 0a321c3
api/main.py
@@ -1,11 +1,14 @@
1
from fastapi import FastAPI
2
3
from api.core.config import settings
4
-from api.core.logging import get_logger
+from api.core.logging import get_logger, setup_logging
5
from api.src.heroes.routes import router as heroes_router
6
from api.src.users.routes import router as auth_router
7
from api.utils.migrations import run_migrations
8
9
+# Set up logging configuration
10
+setup_logging()
11
+
12
# Optional: Run migrations on startup
13
run_migrations()
14
0 commit comments