summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-01-12 18:16:27 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-01-12 18:16:27 +0000
commitdb72a07ef52dd3a911978df9a13f23febdcc00ce (patch)
tree9cb6b968dc37b456eefac4da314388e545033eec
parentCheck that setting typing notification still works after explicit timeout - S... (diff)
downloadsynapse-db72a07ef52dd3a911978df9a13f23febdcc00ce.tar.xz
Don't make @unittest.DEBUG print the huge amount of verbosity generated by the synapse.storage loggers
-rw-r--r--tests/unittest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index a9c0e05541..fe26b7574f 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -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):