mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-23 17:55:04 +01:00
Use the info/error parameters
This commit is contained in:
parent
8fcd30dcc8
commit
a615bb56c1
@ -204,7 +204,10 @@ class formatter(logging.Formatter):
|
||||
# and other terminal commands
|
||||
msg = re.sub(r'\r(?!\n)|\x1B\[(K|.*?(m|h|l))', '', msg)
|
||||
|
||||
if rec.levelno >= logging.INFO: # ??
|
||||
if rec.levelno >= logging.INFO:
|
||||
# the goal of this is to format without the leading "Logs, hour" prefix
|
||||
if rec.args:
|
||||
return msg % rec.args
|
||||
return msg
|
||||
|
||||
rec.msg = msg
|
||||
|
Loading…
Reference in New Issue
Block a user