summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-07-21 13:23:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-21 22:46:37 +0100
commit97fb1fea9b334942cb662484161255474da4abf7 (patch)
tree79811f86d5f26ca94084526817a4c5cca5b486e1 /bitbake
parente2d2377257c974d954d68d37875eee84c13dead4 (diff)
downloadast2050-yocto-poky-97fb1fea9b334942cb662484161255474da4abf7.zip
ast2050-yocto-poky-97fb1fea9b334942cb662484161255474da4abf7.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. (Bitbake rev: b838e0f3a1b481c295f66f5c9f561fa4d51de673) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/event.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index c7252dd..93c04ba 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/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)
OpenPOWER on IntegriCloud