Skip to content

Commit

Permalink
logging_tools: fix invalid escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Aug 29, 2024
1 parent 02b96ec commit 32ddd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sipyco/logging_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def log_with_name(name, *args, **kwargs):

def parse_log_message(msg):
lr = "|".join(_name_to_level.keys())
m = re.fullmatch('('+lr+')(<\d+>)?:([^:]*):(.*)', msg)
m = re.fullmatch('('+lr+')(<\\d+>)?:([^:]*):(.*)', msg)
if m is None:
return 0, logging.INFO, "print", msg
level = _name_to_level[m.group(1)]
Expand Down

0 comments on commit 32ddd78

Please sign in to comment.