diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-01-05 11:20:05 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-01-05 11:21:06 -0700 |
commit | c8ff0fd3e9f050a668f1a069cf37ee37db3664fa (patch) | |
tree | 28044561d601e18a8ac12b88e444531f6575b6cb /lib/bb/event.py | |
parent | dc2264387617586b5c0a61e126c75edde5e7abcd (diff) | |
download | bitbake-c8ff0fd3e9f050a668f1a069cf37ee37db3664fa.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.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r-- | lib/bb/event.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index 2d722fe8c..387029f7a 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -83,8 +83,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() |