2
0
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:
Thomas Nagy 2016-05-28 15:11:58 +02:00
parent 8fcd30dcc8
commit a615bb56c1
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -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