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>
This commit is contained in:
Richard Purdie 2011-01-07 23:54:42 +00:00
parent f8e7215f6c
commit b22e345e05
1 changed files with 3 additions and 3 deletions

View File

@ -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