From: Elliot Smith Date: Mon, 18 Jan 2016 13:45:09 +0000 (+0200) Subject: toasterui: log OSErrorException metadata events X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69f2b2bc373ce114609600b59a6b6ccef20771c9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toasterui: log OSErrorException metadata events 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 Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py index 19be6230482..32b1889a65e 100644 --- a/lib/bb/ui/toasterui.py +++ b/lib/bb/ui/toasterui.py @@ -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