Browse Source

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
changes/36/686836/1
Matt Riedemann 2 months ago
parent
commit
3c27f3cdc0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      nova/tests/fixtures.py

+ 2
- 0
nova/tests/fixtures.py 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

Loading…
Cancel
Save