Logger: Escape tags
Angle brackets should be escaped to avoid mistaken color formatting. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
e33971859b
commit
6b4f100db2
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ def _log_formatter(record: dict) -> str:
|
|||
message = unwrap(record.get("message"), "")
|
||||
|
||||
# Replace once loguru allows for turning off str.format
|
||||
message = message.replace("{", "{{").replace("}", "}}")
|
||||
message = message.replace("{", "{{").replace("}", "}}").replace("<", "\<")
|
||||
lines = message.splitlines()
|
||||
|
||||
fmt = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue