mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +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