diff --git a/waflib/Logs.py b/waflib/Logs.py index 77b2e43f..00ea9deb 100644 --- a/waflib/Logs.py +++ b/waflib/Logs.py @@ -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: