diff options
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r-- | bitbake/lib/bb/msg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 93575d89c4..3e18596faa 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
@@ -230,7 +230,7 @@ def logger_create(name, output=sys.stderr, level=logging.INFO, preserve_handlers | |||
230 | console = logging.StreamHandler(output) | 230 | console = logging.StreamHandler(output) |
231 | console.addFilter(bb.msg.LogFilterShowOnce()) | 231 | console.addFilter(bb.msg.LogFilterShowOnce()) |
232 | format = bb.msg.BBLogFormatter("%(levelname)s: %(message)s") | 232 | format = bb.msg.BBLogFormatter("%(levelname)s: %(message)s") |
233 | if color == 'always' or (color == 'auto' and output.isatty()): | 233 | if color == 'always' or (color == 'auto' and output.isatty() and os.environ.get('NO_COLOR', '') == ''): |
234 | format.enable_color() | 234 | format.enable_color() |
235 | console.setFormatter(format) | 235 | console.setFormatter(format) |
236 | if preserve_handlers: | 236 | if preserve_handlers: |