bitbake: fix -D and -v options
cover bitbake: fix -D and -v options
A single patch to fix a regression in setting the debug/verbosity levels (-D and -v command line options).
The patch (against Poky, but applies cleanly against bitbake master with -p2) is available in the git repository at:
git://git.pokylinux.org/poky-contrib paule/bb-debug
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/bb-debug
Paul Eggleton (1):
bitbake/lib/bb/msg.py: fix setting debug and verbosity levels
bitbake/lib/bb/msg.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.4.1
PATCH 1/1 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 setting incorrect variable names.
Fixes [YOCTO #1513].
--- bitbake/lib/bb/msg.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/msg.py +2 -2
@@ -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):
Signature · 1 line
1.7.4.1
Re: [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels
Quoted 4 lines · On Friday 23 September 2011 13:43:02 Paul Eggleton wrote:
The debug and verbosity levels (as set by the -D and -v command line options respectively) were not being passed through within
msg.pysince bitbake revision45aad2f9647df14bcfa5e755b57e1ddab377939adue to setting incorrect variable names.
Seems there are a couple of references to loggerVerbose, so ignore this; I will send a v2 shortly.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre