From b22e345e05efcc3f66278af8f09fb083afe32b68 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. Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb') 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 -- cgit v1.2.3