From: Ed Bartosh Date: Fri, 15 Jul 2016 16:44:01 +0000 (-0700) Subject: runqueue: improve exception logging X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e191f401e372ee181bc02250232ad9cb9a0e9477;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: bavery Signed-off-by: Richard Purdie --- diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 57be15a62b4..aa939d0443f 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: