summaryrefslogtreecommitdiff
path: root/bitbake/lib
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-08 00:02:00 +0000
commitb22e345e05efcc3f66278af8f09fb083afe32b68 (patch)
tree82b2f57d6db0d434c64e6c0bc4f8f218e0283d58 /bitbake/lib
parentf8e7215f6c4ece8c0a74ceee8da707cf791038e8 (diff)
downloadopenembedded-core-b22e345e05efcc3f66278af8f09fb083afe32b68.tar.gz
openembedded-core-b22e345e05efcc3f66278af8f09fb083afe32b68.tar.bz2
openembedded-core-b22e345e05efcc3f66278af8f09fb083afe32b68.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/knotty.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 7fb7f84e5b..34180fb93e 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -111,10 +111,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:
- return_value = 1
- if event.levelno is logging.ERROR:
+ if event.levelno >= format.ERROR:
return_value = 1
+ if event.taskpid != 0 and event.levelno <= format.NOTE:
+ continue
logger.handle(event)
continue