Patchwork [bitbake-devel] knotty: Fix output printed to the user at debug log levels

mail settings
Submitter Richard Purdie
Date May 11, 2014, 12:06 p.m.
Message ID <1399809974.31891.107.camel@ted>
Download mbox | patch
Permalink /patch/71883/
State New
Headers show


Richard Purdie - May 11, 2014, 12:06 p.m.
If a user runs with the -v or -D options, its understandable they'd
expect to see log output from the workers yet right now a bug in the
log handling does not show this.

Fix the conditional to ensure such log output is shown on the terminal
when it has been requested. Ideally this data should always flow to
the logfiles but that is for another patch.

This also fixes the code to do what was always intended in the comments,
i.e. if the user specifies -D or -v, output is shown from the tasks,
otherwise notes are suppressed.

Signed-off-by: Richard Purdie <>


diff --git a/bitbake/lib/bb/ui/ b/bitbake/lib/bb/ui/
index 41f1ba8..77a7082 100644
--- a/bitbake/lib/bb/ui/
+++ b/bitbake/lib/bb/ui/
@@ -351,7 +351,7 @@  def main(server, eventHandler, params, tf = TerminalFilter):
                 # For "normal" logging conditions, don't show note logs from tasks
                 # but do show them if the user has changed the default log level to
                 # include verbose/debug messages
-                if event.taskpid != 0 and event.levelno <= format.NOTE:
+                if event.taskpid != 0 and event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)):