Skip to content
Snippets Groups Projects
Unverified Commit 7c407efd authored by Jonathan de Jong's avatar Jonathan de Jong Committed by GitHub
Browse files

Update test logging to be able to accept braces (#8335)

parent 5e42e616
No related branches found
No related tags found
No related merge requests found
Fix test logging to allow braces in log output.
\ No newline at end of file
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment