From 97fb1fea9b334942cb662484161255474da4abf7 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 21 Jul 2011 13:23:19 -0700 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/event.py | 3 +-- 1 file changed, 1 insertion(+), 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(): 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)