diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-12 13:45:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-12 13:48:15 +0000 |
commit | 259dd464ab89f630d86f0ebf9b627bd19710712d (patch) | |
tree | 78e35792b655889c85dc901b9da53105b570d3ec | |
parent | 8c5555f5ed6d61db57de80d2820c8cec64a27239 (diff) | |
download | bitbake-259dd464ab89f630d86f0ebf9b627bd19710712d.tar.gz |
bitbake/knotty.py: Ensure task note messages are only surpressed at default log levels
(From Poky rev: 3f08b7f1eadc8d181c76339d14c7abb4f49cad57)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/ui/knotty.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index bcfffea23..9f2b78702 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -112,8 +112,12 @@ def main(server, eventHandler): if isinstance(event, logging.LogRecord): if event.levelno >= format.CRITICAL: 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 |