diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-06-27 11:38:03 +0100 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2018-06-27 11:38:03 +0100 |
commit | 94f09618e54e8ae0a30611f0da463d275768ab74 (patch) | |
tree | cc427b1ebffe9164e64d8491103bbbade7fe6703 /tests/unittest.py | |
parent | cleanups (diff) | |
download | synapse-94f09618e54e8ae0a30611f0da463d275768ab74.tar.xz |
cleanups
Diffstat (limited to 'tests/unittest.py')
-rw-r--r-- | tests/unittest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py index de24b1d2d4..b25f2db5d5 100644 --- a/tests/unittest.py +++ b/tests/unittest.py @@ -35,7 +35,10 @@ class ToTwistedHandler(logging.Handler): def emit(self, record): log_entry = self.format(record) log_level = record.levelname.lower().replace('warning', 'warn') - self.tx_log.emit(twisted.logger.LogLevel.levelWithName(log_level), log_entry.replace("{", r"(").replace("}", r")")) + self.tx_log.emit( + twisted.logger.LogLevel.levelWithName(log_level), + log_entry.replace("{", r"(").replace("}", r")"), + ) handler = ToTwistedHandler() |