From c6e88b7c0e61f9586a275df53f48b90687c5f92f Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 23 Sep 2011 17:05:00 +0100 Subject: bitbake/lib/bb/msg.py: fix setting debug and verbosity levels The debug and verbosity levels (as set by the -D and -v command line options respectively) were not being passed through within msg.py since bitbake revision 45aad2f9647df14bcfa5e755b57e1ddab377939a due to incorrect variable names. Fixes [YOCTO #1513]. Signed-off-by: Paul Eggleton --- lib/bb/build.py | 2 +- lib/bb/msg.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bb/build.py b/lib/bb/build.py index 420e02e2a..70cc80943 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -236,7 +236,7 @@ def exec_func_shell(function, d, runfile, cwd=None): if fakerootcmd: cmd = [fakerootcmd, runfile] - if bb.msg.loggerVerbose: + if bb.msg.loggerDefaultVerbose: logfile = LogTee(logger, sys.stdout) else: logfile = sys.stdout diff --git a/lib/bb/msg.py b/lib/bb/msg.py index b7ae761e4..20d9bdd72 100644 --- a/lib/bb/msg.py +++ b/lib/bb/msg.py @@ -106,8 +106,8 @@ def init_msgconfig(verbose, debug, debug_domains = []): """ Set default verbosity and debug levels config the logger """ - bb.msg.loggerDebugLevel = debug - bb.msg.loggerVerbose = verbose + bb.msg.loggerDefaultDebugLevel = debug + bb.msg.loggerDefaultVerbose = verbose bb.msg.loggerDefaultDomains = debug_domains def addDefaultlogFilter(handler): -- cgit 1.2.3-korg