diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-09 16:17:29 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-08-27 11:38:19 -0700 |
commit | 47ca82397bc395b598c6b68b24cdee9e0d8a76d8 (patch) | |
tree | 751db52d65e175260ecb06fcce150eaae9663cf7 /lib/bb/ui/knotty.py | |
parent | f7c181a0f6ab0b4d33bf80a0e24a788de441f82b (diff) | |
download | bitbake-47ca82397bc395b598c6b68b24cdee9e0d8a76d8.tar.gz |
Use the python logging module under the hood for bb.msg
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/knotty.py')
-rw-r--r-- | lib/bb/ui/knotty.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index f81759abf..b43a35a13 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -72,23 +72,23 @@ def init(server, eventHandler): print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task)) tasknum = tasknum + 1 - if isinstance(event, bb.msg.MsgPlain): + if isinstance(event, bb.event.MsgPlain): print(event._message) continue - if isinstance(event, bb.msg.MsgDebug): + if isinstance(event, bb.event.MsgDebug): print('DEBUG: ' + event._message) continue - if isinstance(event, bb.msg.MsgNote): + if isinstance(event, bb.event.MsgNote): print('NOTE: ' + event._message) continue - if isinstance(event, bb.msg.MsgWarn): + if isinstance(event, bb.event.MsgWarn): print('WARNING: ' + event._message) continue - if isinstance(event, bb.msg.MsgError): + if isinstance(event, bb.event.MsgError): return_value = 1 print('ERROR: ' + event._message) continue - if isinstance(event, bb.msg.MsgFatal): + if isinstance(event, bb.event.MsgFatal): return_value = 1 print('FATAL: ' + event._message) break |