summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 15:55:17 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:31 +0100
commit146046bcda4e481cb221de59ac9858303d473fec (patch)
treefc471111f2e87d734edb908def74f1ba982824b7 /bitbake/lib
parent21a9692c7daf1498f862f5dbe1b85201df39baa7 (diff)
downloadopenembedded-core-146046bcda4e481cb221de59ac9858303d473fec.tar.gz
openembedded-core-146046bcda4e481cb221de59ac9858303d473fec.tar.bz2
openembedded-core-146046bcda4e481cb221de59ac9858303d473fec.zip
Immediately display messages if no UI handlers are installed yet
(Bitbake rev: 17c414d0c050c42d4beb3f1dd84573020aacb392) 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/msg.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 3fcf7091be..9cb1d4c143 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -101,25 +101,34 @@ def debug(level, domain, msg, fn = None):
domain = 'default'
if debug_level[domain] >= level:
bb.event.fire(MsgDebug(msg), None)
+ if not bb.event._ui_handlers:
+ print 'DEBUG: ' + msg
def note(level, domain, msg, fn = None):
if not domain:
domain = 'default'
if level == 1 or verbose or debug_level[domain] >= 1:
bb.event.fire(MsgNote(msg), None)
+ if not bb.event._ui_handlers:
+ print 'NOTE: ' + msg
def warn(domain, msg, fn = None):
bb.event.fire(MsgWarn(msg), None)
+ if not bb.event._ui_handlers:
+ print 'WARNING: ' + msg
def error(domain, msg, fn = None):
bb.event.fire(MsgError(msg), None)
- print 'ERROR: ' + msg
+ if not bb.event._ui_handlers:
+ print 'ERROR: ' + msg
def fatal(domain, msg, fn = None):
bb.event.fire(MsgFatal(msg), None)
- print 'FATAL: ' + msg
+ if not bb.event._ui_handlers:
+ print 'FATAL: ' + msg
sys.exit(1)
def plain(msg, fn = None):
bb.event.fire(MsgPlain(msg), None)
-
+ if not bb.event._ui_handlers:
+ print msg