bitbake/knotty.py: Ensure task note messages are only surpressed at default log levels
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d4731a3f7d
commit
3f08b7f1ea
|
@ -113,8 +113,12 @@ def main(server, eventHandler):
|
||||||
if isinstance(event, logging.LogRecord):
|
if isinstance(event, logging.LogRecord):
|
||||||
if event.levelno >= format.ERROR:
|
if event.levelno >= format.ERROR:
|
||||||
return_value = 1
|
return_value = 1
|
||||||
if event.taskpid != 0 and event.levelno <= format.NOTE:
|
# For "normal" logging conditions, don't show note logs from tasks
|
||||||
continue
|
# 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)
|
logger.handle(event)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue