Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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