]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/knotty.py: Ensure task note messages are only surpressed at default log levels
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jan 2011 13:45:39 +0000 (13:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jan 2011 13:45:39 +0000 (13:45 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/knotty.py

index 34180fb93e5e4ba12ab802b9f6495bc9059dce91..042dbe902c096fd0f1f670d91f58f853f50d2630 100644 (file)
@@ -113,8 +113,12 @@ def main(server, eventHandler):
             if isinstance(event, logging.LogRecord):
                 if event.levelno >= format.ERROR:
                     return_value = 1
-                if event.taskpid != 0 and event.levelno <= format.NOTE:
-                    continue
+                # For "normal" logging conditions, don't show note logs from tasks
+                # but do show them if the user has changed the default log level to 
+                # include verbose/debug messages
+                if logger.getEffectiveLevel() > format.VERBOSE:
+                    if event.taskpid != 0 and event.levelno <= format.NOTE:
+                        continue
                 logger.handle(event)
                 continue