diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 14:03:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-09 12:24:40 +0000 |
commit | a04ee42393822158e5aa6c181d90e1f45dab8c62 (patch) | |
tree | 27bbdb6418651d259433b6db5cfa4445d96200f4 /bitbake | |
parent | fccc51596fde0afdf1e10e87a94ff02778e1383a (diff) | |
download | poky-a04ee42393822158e5aa6c181d90e1f45dab8c62.tar.gz |
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: 25b7bf6672be66bcbfe5760610dce7d3e866cdcc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | 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 526c41f562..52072b5805 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -173,6 +173,10 @@ def print_ui_queue(): | |||
173 | for event in ui_queue[:]: | 173 | for event in ui_queue[:]: |
174 | if isinstance(event, logging.LogRecord): | 174 | if isinstance(event, logging.LogRecord): |
175 | logger.handle(event) | 175 | logger.handle(event) |
176 | if msgerrs: | ||
177 | logger.removeHandler(stderr) | ||
178 | else: | ||
179 | logger.removeHandler(stdout) | ||
176 | 180 | ||
177 | def fire_ui_handlers(event, d): | 181 | def fire_ui_handlers(event, d): |
178 | global _thread_lock | 182 | global _thread_lock |