summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-12 13:45:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-12 13:48:15 +0000
commit259dd464ab89f630d86f0ebf9b627bd19710712d (patch)
tree78e35792b655889c85dc901b9da53105b570d3ec /lib/bb/ui
parent8c5555f5ed6d61db57de80d2820c8cec64a27239 (diff)
downloadbitbake-259dd464ab89f630d86f0ebf9b627bd19710712d.tar.gz
bitbake/knotty.py: Ensure task note messages are only surpressed at default log levels
(From Poky rev: 3f08b7f1eadc8d181c76339d14c7abb4f49cad57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/knotty.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index bcfffea23..9f2b78702 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -112,8 +112,12 @@ def main(server, eventHandler):
if isinstance(event, logging.LogRecord):
if event.levelno >= format.CRITICAL:
return_value = 1
- if event.taskpid != 0 and event.levelno <= format.NOTE:
- continue
+ # 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 logger.getEffectiveLevel() > format.VERBOSE:
+ if event.taskpid != 0 and event.levelno <= format.NOTE:
+ continue
logger.handle(event)
continue