diff options
-rw-r--r-- | bitbake/lib/bb/event.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 65b7ebb43b..c5a5f94dee 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -143,16 +143,16 @@ def print_ui_queue(): | |||
143 | if isinstance(event, logging.LogRecord): | 143 | if isinstance(event, logging.LogRecord): |
144 | if event.levelno > logging.DEBUG: | 144 | if event.levelno > logging.DEBUG: |
145 | if event.levelno >= logging.WARNING: | 145 | if event.levelno >= logging.WARNING: |
146 | logger.handlers = [stderr] | 146 | logger.addHandler(stderr) |
147 | else: | 147 | else: |
148 | logger.handlers = [stdout] | 148 | logger.addHandler(stdout) |
149 | logger.handle(event) | 149 | logger.handle(event) |
150 | msgprint = True | 150 | msgprint = True |
151 | if msgprint: | 151 | if msgprint: |
152 | return | 152 | return |
153 | 153 | ||
154 | # Nope, so just print all of the messages we have (including debug messages) | 154 | # Nope, so just print all of the messages we have (including debug messages) |
155 | logger.handlers = [stdout] | 155 | logger.addHandler(stdout) |
156 | for event in ui_queue: | 156 | for event in ui_queue: |
157 | if isinstance(event, logging.LogRecord): | 157 | if isinstance(event, logging.LogRecord): |
158 | logger.handle(event) | 158 | logger.handle(event) |