summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-11 13:06:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-11 13:15:12 +0100
commitc0bdb8100f44f08cc1bc880792d0ea52f8ba1bf8 (patch)
tree1669ccca3b4ee0dce649fbf601544367e528260d /bitbake
parent155e55e00caf7fa567b0ac8f4f43b68c78e74fdf (diff)
downloadpoky-c0bdb8100f44f08cc1bc880792d0ea52f8ba1bf8.tar.gz
bitbake: knotty: Fix output printed to the user at debug log levels
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. (Bitbake rev: 20a3c93d8572969e76563f29bff89400b93ffae7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/knotty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 41f1ba83af..77a708258a 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -351,7 +351,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
351 # For "normal" logging conditions, don't show note logs from tasks 351 # For "normal" logging conditions, don't show note logs from tasks
352 # but do show them if the user has changed the default log level to 352 # but do show them if the user has changed the default log level to
353 # include verbose/debug messages 353 # include verbose/debug messages
354 if event.taskpid != 0 and event.levelno <= format.NOTE: 354 if event.taskpid != 0 and event.levelno <= format.NOTE and (event.levelno < llevel or (event.levelno == format.NOTE and llevel != format.VERBOSE)):
355 continue 355 continue
356 logger.handle(event) 356 logger.handle(event)
357 continue 357 continue