diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-01-05 11:20:05 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-06 10:47:08 +0000 |
commit | 74653168c08f4a3cee86e37e8f805ca3d4365e1a (patch) | |
tree | 57e5196ffbb912b5780239a6de5ecabf23470cdc /bitbake/lib | |
parent | e7febaa3436d61b90c2f54ee4d143ac5c5530db8 (diff) | |
download | poky-74653168c08f4a3cee86e37e8f805ca3d4365e1a.tar.gz |
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')
-rw-r--r-- | bitbake/lib/bb/event.py | 3 |
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(): | |||
84 | LogRecords to the console.""" | 84 | LogRecords to the console.""" |
85 | logger = logging.getLogger("BitBake") | 85 | logger = logging.getLogger("BitBake") |
86 | if not _ui_handlers: | 86 | if not _ui_handlers: |
87 | from bb.msg import BBLogFormatter | ||
87 | console = logging.StreamHandler(sys.stdout) | 88 | console = logging.StreamHandler(sys.stdout) |
88 | console.setFormatter(logging.Formatter("%(levelname)s: %(message)s")) | 89 | console.setFormatter(BBLogFormatter("%(levelname)s: %(message)s")) |
89 | logger.handlers = [console] | 90 | logger.handlers = [console] |
90 | while ui_queue: | 91 | while ui_queue: |
91 | event = ui_queue.pop() | 92 | event = ui_queue.pop() |