knotty: exit with 1 if we see a critical log message
(Bitbake rev: d527ca441539618c990291fb8340f552ac760bce) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
2984877989
commit
89a1b59d9a
|
@ -114,9 +114,10 @@ def main(server, eventHandler):
|
|||
print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
|
||||
|
||||
if isinstance(event, logging.LogRecord):
|
||||
if event.levelno is logging.CRITICAL or event.levelno is logging.ERROR:
|
||||
if event.levelno >= logging.CRITICAL:
|
||||
return_value = 1
|
||||
if event.levelno is logging.ERROR:
|
||||
return_value = 1
|
||||
if isinstance(event, logging.LogRecord):
|
||||
logger.handle(event)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue