From 61897c0f57c7f05d85db180bf56b3772bacdb154 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 7 Jan 2011 23:54:42 +0000 Subject: 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 --- lib/bb/ui/knotty.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit 1.2.3-korg