Skip to content

Commit 0a321c3

Browse files
committed
fix: setup logging
1 parent a0fa037 commit 0a321c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
from fastapi import FastAPI
22

33
from api.core.config import settings
4-
from api.core.logging import get_logger
4+
from api.core.logging import get_logger, setup_logging
55
from api.src.heroes.routes import router as heroes_router
66
from api.src.users.routes import router as auth_router
77
from api.utils.migrations import run_migrations
88

9+
# Set up logging configuration
10+
setup_logging()
11+
912
# Optional: Run migrations on startup
1013
run_migrations()
1114

0 commit comments

Comments
 (0)