mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
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:
committed by
Richard Purdie
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user