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>
This commit is contained in:
Chris Larson 2011-07-21 13:23:19 -07:00 committed by Richard Purdie
parent e2d2377257
commit 97fb1fea9b
1 changed files with 1 additions and 2 deletions

View File

@ -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)