From 91c4978f43b6d990199debf5099963532b4b9444 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 25 Sep 2023 17:47:20 +0100 Subject: [PATCH] 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 --- cinder/tests/unit/test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cinder/tests/unit/test.py b/cinder/tests/unit/test.py index 66659b275f6..757fa6c0306 100644 --- a/cinder/tests/unit/test.py +++ b/cinder/tests/unit/test.py @@ -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()