db: Silence alembic logging

This should have been done when we switched from SQLAlchemy-Migrate to
Alembic way back. Oops /o\ Do it now.

Change-Id: I5899a5020c81e62a67f37e95facfc87cd312561c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2023-09-25 17:47:20 +01:00
parent d9c21b9c7f
commit 91c4978f43

View File

@ -84,8 +84,12 @@ class Database(fixtures.Fixture):
SESSION_CONFIGURED = True
# Suppress logging for test runs
migrate_logger = logging.getLogger('migrate')
migrate_logger.setLevel(logging.WARNING)
alembic_logger = logging.getLogger('alembic.runtime.migration')
alembic_logger.setLevel(logging.WARNING)
db_logger = logging.getLogger('cinder.db.migration')
db_logger.setLevel(logging.WARNING)
def setUp(self):
super().setUp()