[oe-commits] [bitbake] 15/15: toaster: make error message more informative

git at git.openembedded.org git at git.openembedded.org
Wed Sep 28 14:05:10 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 603c7c13536d3fa1786270e863688c1d2e511196
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Tue Sep 27 16:16:56 2016 +0100

    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 at linux.intel.com>
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/toasterui.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 2bc45b6..9808f6b 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):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list