Skip to content

Commit

Permalink
Update logging to be able to accept braces`
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowJonathan authored Oct 16, 2020
1 parent 0f826b6 commit 6c6d082
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down

0 comments on commit 6c6d082

Please sign in to comment.