Filter out alembic logs below WARNING in tests

During functional tests we see quite a bit of alembic
INFO level logging which we don't really need. This
change sets the alembic logging level to WARNING to
remove that noise.

Change-Id: I9550e1c0c93b48e234f429204e27960d0d1cda81
Related-Bug: #1813147
This commit is contained in:
Matt Riedemann 2019-10-04 16:48:56 -04:00
parent 7b96366f78
commit 3c27f3cdc0
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,8 @@ class StandardLogging(fixtures.Fixture):
# Don't log every single DB migration step
std_logging.getLogger(
'migrate.versioning.api').setLevel(std_logging.WARNING)
# Or alembic for model comparisons.
std_logging.getLogger('alembic').setLevel(std_logging.WARNING)
# At times we end up calling back into main() functions in
# testing. This has the possibility of calling logging.setup