summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-09-23 17:05:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-25 16:23:30 +0100
commitc6e88b7c0e61f9586a275df53f48b90687c5f92f (patch)
tree91260aba64fe69ba9583559d7fc46c9a7c0c8919
parent00fc1d7249b5e217cc7c36ac71b63ddad1c5b769 (diff)
downloadbitbake-c6e88b7c0e61f9586a275df53f48b90687c5f92f.tar.gz
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 <paul.eggleton@linux.intel.com>
-rw-r--r--lib/bb/build.py2
-rw-r--r--lib/bb/msg.py4
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):