]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/knotty.py: Don't show log messages of NOTE and below for task processes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Jan 2011 23:54:42 +0000 (23:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jan 2011 00:02:00 +0000 (00:02 +0000)
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>
bitbake/lib/bb/ui/knotty.py

index 7fb7f84e5b3024f3ac33c713d86bd711e792a884..34180fb93e5e4ba12ab802b9f6495bc9059dce91 100644 (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