From 3f08b7f1eadc8d181c76339d14c7abb4f49cad57 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 12 Jan 2011 13:45:39 +0000 Subject: bitbake/knotty.py: Ensure task note messages are only surpressed at default log levels Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 34180fb93..042dbe902 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -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 -- cgit v1.2.3