diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-06-27 11:27:32 +0100 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2018-06-27 11:27:32 +0100 |
commit | 77078d6c8ef11e2401406edc1ca340e0d7779267 (patch) | |
tree | dfb1c69b80cd017f5406de5b5a1bc9ddbf16a09b /tests/unittest.py | |
parent | Better testing framework for homeserver-using things (#3446) (diff) | |
download | synapse-77078d6c8ef11e2401406edc1ca340e0d7779267.tar.xz |
handle federation not telling us about prev_events
Diffstat (limited to '')
-rw-r--r-- | tests/unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py index 184fe880f3..de24b1d2d4 100644 --- a/tests/unittest.py +++ b/tests/unittest.py @@ -35,7 +35,7 @@ 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) + self.tx_log.emit(twisted.logger.LogLevel.levelWithName(log_level), log_entry.replace("{", r"(").replace("}", r")")) handler = ToTwistedHandler() |