diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/event.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index fa179d8a11..ab62d4d055 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -104,6 +104,18 @@ def print_ui_queue(): | |||
104 | console = logging.StreamHandler(sys.stdout) | 104 | console = logging.StreamHandler(sys.stdout) |
105 | console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s")) | 105 | console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s")) |
106 | logger.handlers = [console] | 106 | logger.handlers = [console] |
107 | |||
108 | # First check to see if we have any proper messages | ||
109 | msgprint = False | ||
110 | for event in ui_queue: | ||
111 | if isinstance(event, logging.LogRecord): | ||
112 | if event.levelno > logging.DEBUG: | ||
113 | logger.handle(event) | ||
114 | msgprint = True | ||
115 | if msgprint: | ||
116 | return | ||
117 | |||
118 | # Nope, so just print all of the messages we have (including debug messages) | ||
107 | for event in ui_queue: | 119 | for event in ui_queue: |
108 | if isinstance(event, logging.LogRecord): | 120 | if isinstance(event, logging.LogRecord): |
109 | logger.handle(event) | 121 | logger.handle(event) |