[oe-commits] [bitbake] branch master-next updated: lib/bb/codeparser: ensure BufferedLogger respects target filtering

git at git.openembedded.org git at git.openembedded.org
Tue Mar 28 13:51:33 UTC 2017


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 ca44fd0  lib/bb/codeparser: ensure BufferedLogger respects target filtering
ca44fd0 is described below

commit ca44fd02c0214e2792652fb3883d794ecebfb665
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Mar 28 13:51:01 2017 +1300

    lib/bb/codeparser: ensure BufferedLogger respects target filtering
    
    BufferedLogger was sending log records to the target logger using
    handle() - this meant that the filtering (e.g. log level set)
    on the target logger was bypassed, leading for example to debug records
    getting printed when the log level was set to logging.WARNING.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/codeparser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py
index 5d2d440..c36397c 100644
--- a/lib/bb/codeparser.py
+++ b/lib/bb/codeparser.py
@@ -186,7 +186,7 @@ class BufferedLogger(Logger):
 
     def flush(self):
         for record in self.buffer:
-            self.target.handle(record)
+            self.target.filter(record)
         self.buffer = []
 
 class PythonParser():

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list