diff --git a/tests/utils.py b/tests/utils.py index edb3e86c..f446145a 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -240,8 +240,7 @@ 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")"), + twisted.logger.LogLevel.levelWithName(log_level), "{entry}", entry=log_entry )