Skip to content

Commit fe67c76

Browse files
committed
Update migrations/env.py
1 parent 3853d31 commit fe67c76

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

migrations/env.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
import logging
2-
1+
import structlog
32
from alembic import context
3+
from sqlalchemy import engine_from_config, pool
4+
45
from orchestrator.db.database import BaseModel
56
from orchestrator.settings import app_settings
6-
from sqlalchemy import engine_from_config, pool
77

88
# this is the Alembic Config object, which provides
99
# access to the values within the .ini file in use.
1010
config = context.config
1111

12-
# Interpret the config file for Python logging.
13-
# This line sets up loggers basically.
14-
logger = logging.getLogger("alembic.env")
12+
# Setup logging
13+
logger = structlog.get_logger()
1514

1615
config.set_main_option("sqlalchemy.url", str(app_settings.DATABASE_URI))
1716

0 commit comments

Comments
 (0)