summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-07 23:54:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-10 11:49:35 +0000
commit61897c0f57c7f05d85db180bf56b3772bacdb154 (patch)
tree9bc59a01e81cc60add96469af5d5ec112017850b /lib/bb/ui
parentcf4a309cce7e4f637799f3df6c37172db1d62ae9 (diff)
downloadbitbake-61897c0f57c7f05d85db180bf56b3772bacdb154.tar.gz
bitbake/knotty.py: Don't show log messages of NOTE and below for task processes
This cleans up the knotty console messages to be a lot quieter and cleaning, in keeping with the expectations of most users. (From Poky rev: b22e345e05efcc3f66278af8f09fb083afe32b68) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/knotty.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index bebfa8a94..bcfffea23 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -110,8 +110,10 @@ def main(server, eventHandler):
print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
if isinstance(event, logging.LogRecord):
- if event.levelno >= logging.CRITICAL:
+ if event.levelno >= format.CRITICAL:
return_value = 1
+ if event.taskpid != 0 and event.levelno <= format.NOTE:
+ continue
logger.handle(event)
continue