summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/event.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 7cbb5ca47e..248fc1a6f8 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -124,6 +124,7 @@ def fire_class_handlers(event, d):
124ui_queue = [] 124ui_queue = []
125@atexit.register 125@atexit.register
126def print_ui_queue(): 126def print_ui_queue():
127 global ui_queue
127 """If we're exiting before a UI has been spawned, display any queued 128 """If we're exiting before a UI has been spawned, display any queued
128 LogRecords to the console.""" 129 LogRecords to the console."""
129 logger = logging.getLogger("BitBake") 130 logger = logging.getLogger("BitBake")
@@ -168,6 +169,7 @@ def print_ui_queue():
168 logger.removeHandler(stderr) 169 logger.removeHandler(stderr)
169 else: 170 else:
170 logger.removeHandler(stdout) 171 logger.removeHandler(stdout)
172 ui_queue = []
171 173
172def fire_ui_handlers(event, d): 174def fire_ui_handlers(event, d):
173 global _thread_lock 175 global _thread_lock