summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/msg.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r--bitbake/lib/bb/msg.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 90b158238f..f1723be797 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -216,3 +216,10 @@ def logger_create(name, output=sys.stderr, level=logging.INFO, preserve_handlers
216 logger.handlers = [console] 216 logger.handlers = [console]
217 logger.setLevel(level) 217 logger.setLevel(level)
218 return logger 218 return logger
219
220def has_console_handler(logger):
221 for handler in logger.handlers:
222 if isinstance(handler, logging.StreamHandler):
223 if handler.stream in [sys.stderr, sys.stdout]:
224 return True
225 return False