diff --git a/alembic.ini b/alembic.ini index a30f556..e60b7dc 100644 --- a/alembic.ini +++ b/alembic.ini @@ -95,7 +95,7 @@ keys = console keys = generic [logger_root] -level = WARNING +level = INFO handlers = console qualname = diff --git a/alembic/env.py b/alembic/env.py index ce8b483..a4d99b7 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -16,8 +16,9 @@ config = context.config # Interpret the config file for Python logging. # This line sets up loggers basically. +# Use disable_existing_loggers=False to preserve app logging configuration if config.config_file_name is not None: - fileConfig(config.config_file_name) + fileConfig(config.config_file_name, disable_existing_loggers=False) # Add your model's MetaData object here for 'autogenerate' support target_metadata = Base.metadata