[oe-commits] [bitbake] 04/20: runqueue: improve exception logging

git at git.openembedded.org git at git.openembedded.org
Tue Jul 19 08:01:08 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit e191f401e372ee181bc02250232ad9cb9a0e9477
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Fri Jul 15 09:44:01 2016 -0700

    runqueue: improve exception logging
    
    Runqueue errors direct the user to view the "failure below",
    but no additional error message is available.
    
    Log the stacktrace so that the user can see what went wrong.
    
    Also fix a typo in the log message.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: bavery <brian.avery at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/runqueue.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 57be15a..aa939d0 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1219,8 +1219,8 @@ class RunQueue:
                 pass
             self.state = runQueueComplete
             raise
-        except:
-            logger.error("An uncaught exception occured in runqueue, please see the failure below:")
+        except Exception as err:
+            logger.exception("An uncaught exception occurred in runqueue")
             try:
                 self.teardown_workers()
             except:

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


More information about the Openembedded-commits mailing list