diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-09-11 12:00:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-14 09:50:33 +0100 |
commit | 537dd88c1a86b6a1dd74c29aaa2ecab8213fb1b9 (patch) | |
tree | 522ff9a44230f41f709490d8b7012e8978e9ded5 | |
parent | 831486844dc6fd2856c4010ab8a2c9745705cfe6 (diff) | |
download | poky-537dd88c1a86b6a1dd74c29aaa2ecab8213fb1b9.tar.gz |
bitbake: hob: format error messages properly
Error messages that use arguments need to be formatted properly, or we
don't get the full message. Use a formatter to do this when an error
occurs.
Partial fix for [YOCTO #2983].
(Bitbake rev: 6783538884adecd914909a9ab4ca73c27575f3ad)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index dac2f74d90..35cbded97d 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -177,7 +177,9 @@ class HobHandler(gobject.GObject): | |||
177 | 177 | ||
178 | elif isinstance(event, logging.LogRecord): | 178 | elif isinstance(event, logging.LogRecord): |
179 | if event.levelno >= logging.ERROR: | 179 | if event.levelno >= logging.ERROR: |
180 | self.error_msg += event.msg + '\n' | 180 | formatter = bb.msg.BBLogFormatter() |
181 | formatter.format(event) | ||
182 | self.error_msg += event.message + '\n' | ||
181 | 183 | ||
182 | elif isinstance(event, bb.event.TargetsTreeGenerated): | 184 | elif isinstance(event, bb.event.TargetsTreeGenerated): |
183 | self.current_phase = "data generation" | 185 | self.current_phase = "data generation" |