All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] bitbake: fix -D and -v options v2
@ 2011-09-23 16:04 Paul Eggleton
  2011-09-23 16:05 ` [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2011-09-23 16:04 UTC (permalink / raw)
  To: bitbake-devel

A single patch to fix a regression in setting the debug/verbosity levels
(-D and -v command line options).

Since v1, fix some references to the loggerVerbose variable in build.py.

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/build.py |    4 ++--
 bitbake/lib/bb/msg.py   |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
1.7.4.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels
  2011-09-23 16:04 [PATCH 0/1] bitbake: fix -D and -v options v2 Paul Eggleton
@ 2011-09-23 16:05 ` Paul Eggleton
  2011-09-25 15:26   ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2011-09-23 16:05 UTC (permalink / raw)
  To: bitbake-devel

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>
---
 bitbake/lib/bb/build.py |    4 ++--
 bitbake/lib/bb/msg.py   |    4 ++--
 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):
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels
  2011-09-23 16:05 ` [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels Paul Eggleton
@ 2011-09-25 15:26   ` Richard Purdie
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2011-09-25 15:26 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: bitbake-devel

On Fri, 2011-09-23 at 17:05 +0100, 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.py since
> bitbake revision 45aad2f9647df14bcfa5e755b57e1ddab377939a due to
> incorrect variable names.
> 
> Fixes [YOCTO #1513].
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  bitbake/lib/bb/build.py |    4 ++--
>  bitbake/lib/bb/msg.py   |    4 ++--
>  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):

Merged to master, thanks.

Richard





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels
  2011-09-23 12:43 ` [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels Paul Eggleton
@ 2011-09-23 15:53   ` Paul Eggleton
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2011-09-23 15:53 UTC (permalink / raw)
  To: bitbake-devel

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.py since
> bitbake revision 45aad2f9647df14bcfa5e755b57e1ddab377939a due 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

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels
  2011-09-23 12:43 [PATCH 0/1] bitbake: fix -D and -v options Paul Eggleton
@ 2011-09-23 12:43 ` Paul Eggleton
  2011-09-23 15:53   ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2011-09-23 12:43 UTC (permalink / raw)
  To: bitbake-devel

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].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bitbake/lib/bb/msg.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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):
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-25 15:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-23 16:04 [PATCH 0/1] bitbake: fix -D and -v options v2 Paul Eggleton
2011-09-23 16:05 ` [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels Paul Eggleton
2011-09-25 15:26   ` Richard Purdie
  -- strict thread matches above, loose matches on Subject: below --
2011-09-23 12:43 [PATCH 0/1] bitbake: fix -D and -v options Paul Eggleton
2011-09-23 12:43 ` [PATCH 1/1] bitbake/lib/bb/msg.py: fix setting debug and verbosity levels Paul Eggleton
2011-09-23 15:53   ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.