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 <john.griffith@solidfire.com>
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()