summary refs log tree commit diff
path: root/tests/test_utils/logging_setup.py
diff options
context:
space:
mode:
authorJonathan de Jong <jonathandejong02@gmail.com>2020-09-18 13:56:40 +0200
committerGitHub <noreply@github.com>2020-09-18 07:56:40 -0400
commit7c407efdc80abf2a991844d107a896d629e3965a (patch)
tree40e48024f35cc01c56e5b82327c973427c4811e6 /tests/test_utils/logging_setup.py
parentMerge remote-tracking branch 'origin/release-v1.20.0' into develop (diff)
downloadsynapse-7c407efdc80abf2a991844d107a896d629e3965a.tar.xz
Update test logging to be able to accept braces (#8335)
Diffstat (limited to 'tests/test_utils/logging_setup.py')
-rw-r--r--tests/test_utils/logging_setup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_utils/logging_setup.py b/tests/test_utils/logging_setup.py
index 2d96b0fa8d..fdfb840b62 100644
--- a/tests/test_utils/logging_setup.py
+++ b/tests/test_utils/logging_setup.py
@@ -29,8 +29,7 @@ class ToTwistedHandler(logging.Handler):
         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")"),
+            twisted.logger.LogLevel.levelWithName(log_level), "{entry}", entry=log_entry
         )