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>
elif isinstance(event, logging.LogRecord):
if event.levelno >= logging.ERROR:
- self.error_msg += event.msg + '\n'
+ formatter = bb.msg.BBLogFormatter()
+ formatter.format(event)
+ self.error_msg += event.message + '\n'
elif isinstance(event, bb.event.TargetsTreeGenerated):
self.current_phase = "data generation"