[bitbake-devel] [PATCH] cooker: Reset loghandler
Richard Purdie
richard.purdie at linuxfoundation.org
Tue Feb 18 22:00:54 UTC 2020
When parsing, reset the loghandler when finished, else the messages
can be misleading.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index a05630d52d..2d937a413c 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):
--
2.25.0
More information about the bitbake-devel
mailing list