From 8c75d3f276e80196e276753f7d33e485f87d7e9b Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Thu, 6 Aug 2015 16:46:27 -0500 Subject: [PATCH] Remove unit test migration logging DB migration unit tests output a bunch of 'Loading script' messages that are of little to no value. This patch raises the default migrations module logging level to WARNING to prevent these debug messages from cluttering the output. Change-Id: Ib1bb5a0efc791a41f2d4cb1ea0e6eba4658097a8 Co-Authored-By: John Griffith --- cinder/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cinder/test.py b/cinder/test.py index c8433d126..d0601802a 100644 --- a/cinder/test.py +++ b/cinder/test.py @@ -73,6 +73,10 @@ class Database(fixtures.Fixture): self.sqlite_db = sqlite_db self.sqlite_clean_db = sqlite_clean_db + # Suppress logging for test runs + migrate_logger = logging.getLogger('migrate') + migrate_logger.setLevel(logging.WARNING) + self.engine = db_api.get_engine() self.engine.dispose() conn = self.engine.connect() -- 2.45.2