summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/msg.py2
-rw-r--r--bitbake/lib/bb/ui/knotty.py2
2 files changed, 2 insertions, 2 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:
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 5a97d040b0..f86999bb09 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -179,7 +179,7 @@ class TerminalFilter(object):
179 new[3] = new[3] & ~termios.ECHO 179 new[3] = new[3] & ~termios.ECHO
180 termios.tcsetattr(fd, termios.TCSADRAIN, new) 180 termios.tcsetattr(fd, termios.TCSADRAIN, new)
181 curses.setupterm() 181 curses.setupterm()
182 if curses.tigetnum("colors") > 2: 182 if curses.tigetnum("colors") > 2 and os.environ.get('NO_COLOR', '') == '':
183 for h in handlers: 183 for h in handlers:
184 try: 184 try:
185 h.formatter.enable_color() 185 h.formatter.enable_color()