diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-15 13:50:28 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:51 +0000 |
commit | 89a1b59d9a0c2ba7ec62dad41822dd7fdd831a81 (patch) | |
tree | 2f1f335418f0ca80ec16342368f7a1bd334f9e3d /bitbake/lib | |
parent | 2984877989ec181409871dfde6723f7f9de466e1 (diff) | |
download | openembedded-core-89a1b59d9a0c2ba7ec62dad41822dd7fdd831a81.tar.gz openembedded-core-89a1b59d9a0c2ba7ec62dad41822dd7fdd831a81.tar.bz2 openembedded-core-89a1b59d9a0c2ba7ec62dad41822dd7fdd831a81.zip |
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 9f3ec41b5c..69a84f7830 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -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 |