mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 03:39:53 +01:00
new command-line option --color - Issue 1474
This commit is contained in:
parent
ad330d76bc
commit
002badce44
@ -179,7 +179,8 @@ class formatter(logging.Formatter):
|
||||
except Exception:
|
||||
msg = rec.msg
|
||||
|
||||
if rec.stream.isatty():
|
||||
use = colors_lst['USE']
|
||||
if (use == 1 and rec.stream.isatty()) or use == 2:
|
||||
|
||||
c1 = getattr(rec, 'c1', None)
|
||||
if c1 is None:
|
||||
|
Loading…
Reference in New Issue
Block a user