diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-02 11:27:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-02 12:00:21 +0100 |
commit | 55631da1336589e583e8341a655179f7714ab3fe (patch) | |
tree | ecaa4ec3b31600e1e7e866e8774179fb33ac55b5 | |
parent | 683c24788d96176699a585055eb62d8a71830a12 (diff) | |
download | bitbake-55631da1336589e583e8341a655179f7714ab3fe.tar.gz |
event: Clear ui_queue after handling it
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/event.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index 7cbb5ca47..248fc1a6f 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -124,6 +124,7 @@ def fire_class_handlers(event, d): ui_queue = [] @atexit.register def print_ui_queue(): + global ui_queue """If we're exiting before a UI has been spawned, display any queued LogRecords to the console.""" logger = logging.getLogger("BitBake") @@ -168,6 +169,7 @@ def print_ui_queue(): logger.removeHandler(stderr) else: logger.removeHandler(stdout) + ui_queue = [] def fire_ui_handlers(event, d): global _thread_lock |