From 517366b449a20097309875c611f3dc5a97e0d6ea Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 8 Jun 2011 13:34:03 +0100 Subject: knotty: If any error messages are seen, set our exit code accordingly Signed-off-by: Richard Purdie --- lib/bb/ui/knotty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bb/ui/knotty.py') diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 44d1c1dc9..f330c084d 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -111,7 +111,7 @@ def main(server, eventHandler): print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task)) if isinstance(event, logging.LogRecord): - if event.levelno >= format.CRITICAL: + if event.levelno >= format.ERROR: return_value = 1 # For "normal" logging conditions, don't show note logs from tasks # but do show them if the user has changed the default log level to -- cgit 1.2.3-korg