summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-01-05 11:20:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-06 10:47:08 +0000
commit74653168c08f4a3cee86e37e8f805ca3d4365e1a (patch)
tree57e5196ffbb912b5780239a6de5ecabf23470cdc /bitbake/lib/bb/event.py
parente7febaa3436d61b90c2f54ee4d143ac5c5530db8 (diff)
downloadopenembedded-core-74653168c08f4a3cee86e37e8f805ca3d4365e1a.tar.gz
openembedded-core-74653168c08f4a3cee86e37e8f805ca3d4365e1a.tar.bz2
openembedded-core-74653168c08f4a3cee86e37e8f805ca3d4365e1a.zip
event: use BBLogFormatter in print_ui_queue
This ensures that when a failure occurs very early on in bitbake startup, the message formatting ematches that used by the UIs. (Bitbake rev: c8ff0fd3e9f050a668f1a069cf37ee37db3664fa) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 3866e01f2b..8b45501c00 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -84,8 +84,9 @@ def print_ui_queue():
LogRecords to the console."""
logger = logging.getLogger("BitBake")
if not _ui_handlers:
+ from bb.msg import BBLogFormatter
console = logging.StreamHandler(sys.stdout)
- console.setFormatter(logging.Formatter("%(levelname)s: %(message)s"))
+ console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s"))
logger.handlers = [console]
while ui_queue:
event = ui_queue.pop()