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 3853d31 commit fe67c76Copy full SHA for fe67c76
migrations/env.py
@@ -1,17 +1,16 @@
1
-import logging
2
-
+import structlog
3
from alembic import context
+from sqlalchemy import engine_from_config, pool
4
+
5
from orchestrator.db.database import BaseModel
6
from orchestrator.settings import app_settings
-from sqlalchemy import engine_from_config, pool
7
8
# this is the Alembic Config object, which provides
9
# access to the values within the .ini file in use.
10
config = context.config
11
12
-# Interpret the config file for Python logging.
13
-# This line sets up loggers basically.
14
-logger = logging.getLogger("alembic.env")
+# Setup logging
+logger = structlog.get_logger()
15
16
config.set_main_option("sqlalchemy.url", str(app_settings.DATABASE_URI))
17
0 commit comments