diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/event.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 4b133a7c12..e71a8f27aa 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -125,7 +125,7 @@ def print_ui_queue(): | |||
125 | 125 | ||
126 | # First check to see if we have any proper messages | 126 | # First check to see if we have any proper messages |
127 | msgprint = False | 127 | msgprint = False |
128 | for event in ui_queue: | 128 | for event in ui_queue[:]: |
129 | if isinstance(event, logging.LogRecord): | 129 | if isinstance(event, logging.LogRecord): |
130 | if event.levelno > logging.DEBUG: | 130 | if event.levelno > logging.DEBUG: |
131 | if event.levelno >= logging.WARNING: | 131 | if event.levelno >= logging.WARNING: |
@@ -139,7 +139,7 @@ def print_ui_queue(): | |||
139 | 139 | ||
140 | # Nope, so just print all of the messages we have (including debug messages) | 140 | # Nope, so just print all of the messages we have (including debug messages) |
141 | logger.addHandler(stdout) | 141 | logger.addHandler(stdout) |
142 | for event in ui_queue: | 142 | for event in ui_queue[:]: |
143 | if isinstance(event, logging.LogRecord): | 143 | if isinstance(event, logging.LogRecord): |
144 | logger.handle(event) | 144 | logger.handle(event) |
145 | 145 | ||