summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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/lib/bb
parente2d2377257c974d954d68d37875eee84c13dead4 (diff)
downloadpoky-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/lib/bb')
-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 c7252dd330..93c04ba21a 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -102,8 +102,7 @@ def print_ui_queue():
102 console = logging.StreamHandler(sys.stdout) 102 console = logging.StreamHandler(sys.stdout)
103 console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s")) 103 console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s"))
104 logger.handlers = [console] 104 logger.handlers = [console]
105 while ui_queue: 105 for event in ui_queue:
106 event = ui_queue.pop()
107 if isinstance(event, logging.LogRecord): 106 if isinstance(event, logging.LogRecord):
108 logger.handle(event) 107 logger.handle(event)
109 108