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:
parent
968dc988f9
commit
db72a07ef5
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue