summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-09-27 16:16:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-28 10:45:25 +0100
commit603c7c13536d3fa1786270e863688c1d2e511196 (patch)
tree536e48b7c17cd6afddbbb609533289f79cc91fef
parent114a3fe3f23ef09782c5aa18f425d0d0dbdfdd35 (diff)
downloadbitbake-603c7c13536d3fa1786270e863688c1d2e511196.tar.gz
toaster: make error message more informative
Error message ERROR: Unprocessed MetadataEvent <bb.event.MetadataEvent object at 0x7f750e671a58> doesn't give a lot of information about the event. It just prints event object, which is always bb.event.MetadataEvent. Including event type into the error message should make it more informative: ERROR: Unprocessed MetadataEvent TaskArtifacts Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/toasterui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 2bc45b631..9808f6bc8 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -438,7 +438,7 @@ def main(server, eventHandler, params):
elif event.type == "OSErrorException":
logger.error(event)
else:
- logger.error("Unprocessed MetadataEvent %s ", str(event))
+ logger.error("Unprocessed MetadataEvent %s", event.type)
continue
if isinstance(event, bb.cooker.CookerExit):