summaryrefslogtreecommitdiffstats
path: root/lib/bb/event.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-07-21 13:23:19 -0700
committerChris Larson <chris_larson@mentor.com>2011-07-21 13:23:21 -0700
commitb838e0f3a1b481c295f66f5c9f561fa4d51de673 (patch)
tree480e81069ecb2a212ed632dcbf0fe35e9936ad9e /lib/bb/event.py
parent09a9146262d58dfe4a2ea4270026b90ae33f6c91 (diff)
downloadbitbake-contrib-b838e0f3a1b481c295f66f5c9f561fa4d51de673.tar.gz
event: fix the event display order when exiting early
It was displaying the log messages in LIFO order, which isn't what we expect to see. Thankfully this only occurred during an early abort (e.g. config file parsing error), but those are the cases where it's very important to see accurate messages, to diagnose. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index c7252dd33..93c04ba21 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -102,8 +102,7 @@ def print_ui_queue():
console = logging.StreamHandler(sys.stdout)
console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s"))
logger.handlers = [console]
- while ui_queue:
- event = ui_queue.pop()
+ for event in ui_queue:
if isinstance(event, logging.LogRecord):
logger.handle(event)