Skip to content

Commit 41029ef

Browse files
committed
pass context.config.config_args to logging.config.fileConfig as defaults
1 parent c072e67 commit 41029ef

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

alembic/templates/async/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Interpret the config file for Python logging.
1515
# This line sets up loggers basically.
1616
if config.config_file_name is not None:
17-
fileConfig(config.config_file_name)
17+
fileConfig(config.config_file_name, defaults=config.config_args)
1818

1919
# add your model's MetaData object here
2020
# for 'autogenerate' support

alembic/templates/generic/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Interpret the config file for Python logging.
1313
# This line sets up loggers basically.
1414
if config.config_file_name is not None:
15-
fileConfig(config.config_file_name)
15+
fileConfig(config.config_file_name, defaults=config.config_args)
1616

1717
# add your model's MetaData object here
1818
# for 'autogenerate' support

alembic/templates/multidb/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Interpret the config file for Python logging.
1717
# This line sets up loggers basically.
1818
if config.config_file_name is not None:
19-
fileConfig(config.config_file_name)
19+
fileConfig(config.config_file_name, defaults=config.config_args)
2020
logger = logging.getLogger("alembic.env")
2121

2222
# gather section names referring to different

alembic/templates/pyproject/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Interpret the config file for Python logging.
1313
# This line sets up loggers basically.
1414
if config.config_file_name is not None:
15-
fileConfig(config.config_file_name)
15+
fileConfig(config.config_file_name, defaults=config.config_args)
1616

1717
# add your model's MetaData object here
1818
# for 'autogenerate' support

0 commit comments

Comments
 (0)