0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-10 12:02:43 +01:00

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
logging.getLogger().setLevel(level)
# Don't set SQL logging
logging.getLogger("synapse.storage").setLevel(old_level)
return orig()
def assertObjectHasAttributes(self, attrs, obj):