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:
Chris Larson 2010-12-15 13:50:28 -07:00 committed by Richard Purdie
parent 2984877989
commit 89a1b59d9a
1 changed files with 3 additions and 2 deletions

View File

@ -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