diff options
author | Erik Johnston <erikj@jki.re> | 2018-06-29 13:55:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 13:55:02 +0100 |
commit | e3b4043800f376582676f52767cffcf1e9b8cc99 (patch) | |
tree | 7b0f021479039d87c3729667c4cbb99467228756 /tests/unittest.py | |
parent | Merge pull request #3465 from matrix-org/matthew/as_ip_lock (diff) | |
parent | topfile update (diff) | |
download | synapse-e3b4043800f376582676f52767cffcf1e9b8cc99.tar.xz |
Merge pull request #3456 from matrix-org/hawkowl/federation-prevevent-checking
Check the state of prev_events a bit more thoroughly when coming over federation
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 184fe880f3..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) + self.tx_log.emit( + twisted.logger.LogLevel.levelWithName(log_level), + log_entry.replace("{", r"(").replace("}", r")"), + ) handler = ToTwistedHandler() |