[gnome-continuous-yocto/gnomeostree-3.28-rocko: 8251/8267] bitbake: event: Ensure we clean up loggers
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 8251/8267] bitbake: event: Ensure we clean up loggers
- Date: Sun, 17 Dec 2017 07:23:22 +0000 (UTC)
commit babf92331298c878312208fdde6f4aed7728bfe4
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Wed Nov 8 14:03:59 2017 +0000
bitbake: event: Ensure we clean up loggers
Whilst we're likely exiting in this case, clean up the loggers we add
so that in the case of certain server retries there is no possibility
multiple loggers stack up.
(Bitbake rev: e52bf5f066618dfabecbd4197f77f78fa463af64)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
(cherry picked from commit 25b7bf6672be66bcbfe5760610dce7d3e866cdcc)
Signed-off-by: Armin Kuster <akuster808 gmail com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/lib/bb/event.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 526c41f..52072b5 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -173,6 +173,10 @@ def print_ui_queue():
for event in ui_queue[:]:
if isinstance(event, logging.LogRecord):
logger.handle(event)
+ if msgerrs:
+ logger.removeHandler(stderr)
+ else:
+ logger.removeHandler(stdout)
def fire_ui_handlers(event, d):
global _thread_lock
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]