]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toasterui: log OSErrorException metadata events
authorElliot Smith <elliot.smith@intel.com>
Mon, 18 Jan 2016 13:45:09 +0000 (15:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jan 2016 22:06:29 +0000 (22:06 +0000)
OSErrors occurring in toaster.bbclass are converted to
OSErrorException metadata events. They were then being swallowed
as unprocessed events by toasterui, which made them difficult
to spot.

Explicitly catch OSErrorException events and log them so they
are easier to spot and debug.

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/toasterui.py

index 19be6230482d86afda56b3a0172b9b034697ca8e..32b1889a65ec4977463c0caa29488e9a6183d4c2 100644 (file)
@@ -366,6 +366,8 @@ def main(server, eventHandler, params):
                     buildinfohelper.store_license_manifest_path(event)
                 elif event.type == "SetBRBE":
                     buildinfohelper.brbe = buildinfohelper._get_data_from_event(event)
+                elif event.type == "OSErrorException":
+                    logger.error(event)
                 else:
                     logger.error("Unprocessed MetadataEvent %s ", str(event))
                 continue