[bitbake-devel] [PATCH 2/2] bitbake-layers: Keep loglevel in colored logger

Ola x Nilsson ola.x.nilsson at axis.com
Fri Dec 20 14:23:20 UTC 2019


Signed-off-by: Ola x Nilsson <olani at axis.com>
---
 bin/bitbake-layers | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index a884dc1f..149f1b1a 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -52,7 +52,9 @@ def main():
 
     # Need to re-run logger_create with color argument
     # (will be the same logger since it has the same name)
-    bb.msg.logger_create('bitbake-layers', output=sys.stdout, color=global_args.color)
+    bb.msg.logger_create('bitbake-layers', output=sys.stdout,
+                         color=global_args.color,
+                         level=logger.getEffectiveLevel())
 
     plugins = []
     tinfoil = bb.tinfoil.Tinfoil(tracking=True)
-- 
2.11.0



More information about the bitbake-devel mailing list