diff options
-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 9f3ec41b5..69a84f783 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 |