Don't make @unittest.DEBUG print the huge amount of verbosity generated by the synapse.storage loggers

This commit is contained in:
Paul "LeoNerd" Evans 2015-01-12 18:16:27 +00:00
parent 968dc988f9
commit db72a07ef5

View file

@ -69,6 +69,8 @@ class TestCase(unittest.TestCase):
return ret return ret
logging.getLogger().setLevel(level) logging.getLogger().setLevel(level)
# Don't set SQL logging
logging.getLogger("synapse.storage").setLevel(old_level)
return orig() return orig()
def assertObjectHasAttributes(self, attrs, obj): def assertObjectHasAttributes(self, attrs, obj):