[OE-core] [PATCH 3/4] recipetool, devtool: set up the logging filters
Christopher Larson
kergoth at gmail.com
Mon Mar 4 21:36:25 UTC 2019
From: Christopher Larson <chris_larson at mentor.com>
We want errors going to stderr, the way they do in bitbake itself.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
scripts/devtool | 2 ++
scripts/recipetool | 2 ++
2 files changed, 4 insertions(+)
diff --git a/scripts/devtool b/scripts/devtool
index 0e578c0de3..de1847eef3 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 3a3c9b7445..bac9c72107 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]):
--
2.20.1
More information about the Openembedded-core
mailing list