From: Sean McGinnis Date: Thu, 6 Aug 2015 21:46:27 +0000 (-0500) Subject: Remove unit test migration logging X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8c75d3f276e80196e276753f7d33e485f87d7e9b;p=openstack-build%2Fcinder-build.git 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 --- 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()