Skip to content
Snippets Groups Projects
Commit 0add5447 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Fix migrations messing up logging

parent 0a9f5f0a
No related branches found
No related tags found
No related merge requests found
import logging import logging
from logging.config import fileConfig
from flask import current_app from flask import current_app
...@@ -9,10 +8,6 @@ from alembic import context ...@@ -9,10 +8,6 @@ from alembic import context
# access to the values within the .ini file in use. # access to the values within the .ini file in use.
config = context.config config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
logger = logging.getLogger('alembic.env') logger = logging.getLogger('alembic.env')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment