[oe-commits] [bitbake] branch master-next updated: cooker: Reset loghandler

git at git.openembedded.org git at git.openembedded.org
Tue Feb 18 22:37:18 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
     new 65419e3  cooker: Reset loghandler
65419e3 is described below

commit 65419e334d337826704287702725017aee73ac4b
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