summaryrefslogtreecommitdiff
path: root/keystone/common/sql/migrations/env.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone/common/sql/migrations/env.py')
-rw-r--r--keystone/common/sql/migrations/env.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/keystone/common/sql/migrations/env.py b/keystone/common/sql/migrations/env.py
index 49efd90f3..2d116f1bd 100644
--- a/keystone/common/sql/migrations/env.py
+++ b/keystone/common/sql/migrations/env.py
@@ -20,9 +20,10 @@ from sqlalchemy import pool
# access to the values within the .ini file in use.
config = context.config
-# Interpret the config file for Python logging.
+# Interpret the config file for Python logging unless we're told not to.
# This line sets up loggers basically.
-fileConfig(config.config_file_name)
+if config.attributes.get('configure_logger', True):
+ fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support