[oe-commits] [openembedded-core] 03/06: recipetool, devtool: set up the logging filters

git at git.openembedded.org git at git.openembedded.org
Mon Mar 4 23:00:55 UTC 2019


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

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

commit 87beb1a9f2ff47ccc40e4b8de5a5066396476cbd
Author: Christopher Larson <chris_larson at mentor.com>
AuthorDate: Mon Mar 4 21:36:25 2019 +0000

    recipetool, devtool: set up the logging filters
    
    We want errors going to stderr, the way they do in bitbake itself.
    
    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/devtool    | 2 ++
 scripts/recipetool | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/scripts/devtool b/scripts/devtool
index 0e578c0..de1847e 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -282,11 +282,13 @@ def main():
         logger.debug('Using standard bitbake path %s' % bitbakepath)
         scriptpath.add_oe_lib_path()
 
+    scriptutils.logger_setup_filters(logger)
     scriptutils.logger_setup_color(logger, global_args.color)
 
     if global_args.bbpath is None:
         try:
             tinfoil = setup_tinfoil(config_only=True, basepath=basepath)
+            tinfoil.logger.handlers = logger.handlers
             try:
                 global_args.bbpath = tinfoil.config_data.getVar('BBPATH')
             finally:
diff --git a/scripts/recipetool b/scripts/recipetool
index 3a3c9b7..bac9c72 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -75,9 +75,11 @@ def main():
     logger.debug('Found bitbake path: %s' % bitbakepath)
     scriptpath.add_oe_lib_path()
 
+    scriptutils.logger_setup_filters(logger)
     scriptutils.logger_setup_color(logger, global_args.color)
 
     tinfoil = tinfoil_init(False)
+    tinfoil.logger.handlers = logger.handlers
     try:
         for path in (tinfoil.config_data.getVar('BBPATH').split(':')
                      + [scripts_path]):

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


More information about the Openembedded-commits mailing list