[oe-commits] [bitbake] 05/08: cooker: Reset loghandler
git at git.openembedded.org
git at git.openembedded.org
Wed Feb 19 11:26:46 UTC 2020
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository bitbake.
commit 7af80cd1dd577b05d39a3cc5d5c547a2549e39df
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Feb 17 17:30:08 2020 +0000
cooker: Reset loghandler
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 a05630d..2d937a4 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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list