summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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:25:27 +0100
commitdea2fd181aa787c1228c10664856773d5dc4bbe5 (patch)
tree9ebf51f20bd21a82f0cde6567b60f05a02398dbc /bitbake/lib
parente271de0fabac69e1599de117856a3ae705470f21 (diff)
downloadast2050-yocto-poky-dea2fd181aa787c1228c10664856773d5dc4bbe5.zip
ast2050-yocto-poky-dea2fd181aa787c1228c10664856773d5dc4bbe5.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]. (Bitbake rev: c6e88b7c0e61f9586a275df53f48b90687c5f92f) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py4
-rw-r--r--bitbake/lib/bb/msg.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 00304b4..8937f08 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -223,7 +223,7 @@ def exec_func_shell(function, d, runfile, cwd=None):
with open(runfile, 'w') as script:
script.write('#!/bin/sh -e\n')
- if bb.msg.loggerVerbose:
+ if bb.msg.loggerDefaultVerbose:
script.write("set -x\n")
data.emit_func(function, script, d)
if cwd:
@@ -234,7 +234,7 @@ def exec_func_shell(function, d, runfile, cwd=None):
cmd = runfile
- if bb.msg.loggerVerbose:
+ if bb.msg.loggerDefaultVerbose:
logfile = LogTee(logger, sys.stdout)
else:
logfile = sys.stdout
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index b7ae761..20d9bdd 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/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):
OpenPOWER on IntegriCloud