2
0
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:
Thomas Nagy 2014-08-17 22:59:18 +02:00
parent ad330d76bc
commit 002badce44
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

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