summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-17 17:30:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-19 11:25:32 +0000
commit7af80cd1dd577b05d39a3cc5d5c547a2549e39df (patch)
tree74a7a424f9c43d6cc12558b1ca1bb49e7c765e0e
parent01bf0912eef5700d61c6e3c9138cb4b6825ee782 (diff)
downloadbitbake-7af80cd1dd577b05d39a3cc5d5c547a2549e39df.tar.gz
cooker: Reset loghandler
When parsing, reset the loghandler when finished, else the messages can be misleading. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index a05630d52..2d937a413 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1949,6 +1949,7 @@ class Parser(multiprocessing.Process):
def parse(self, filename, appends):
try:
+ origfilter = bb.event.LogHandler.filter
# Record the filename we're parsing into any events generated
def parse_filter(self, record):
record.taskpid = bb.event.worker_pid
@@ -1971,6 +1972,8 @@ class Parser(multiprocessing.Process):
# a SystemExit event for example.
except BaseException as exc:
return True, ParsingFailure(exc, filename)
+ finally:
+ bb.event.LogHandler.filter = origfilter
class CookerParser(object):
def __init__(self, cooker, filelist, masked):