mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:44:51 -04:00
Update test logging to be able to accept braces (#8335)
This commit is contained in:
parent
5e42e61609
commit
7c407efdc8
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue