aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-07-15 09:44:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-19 08:55:59 +0100
commite191f401e372ee181bc02250232ad9cb9a0e9477 (patch)
tree5845ef19b4d7523cc53b2f954324b5e1814f7667 /lib/bb/runqueue.py
parenta392f19f16ef8202ce3c12afbeb186a02438da17 (diff)
downloadbitbake-e191f401e372ee181bc02250232ad9cb9a0e9477.tar.gz
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@linux.intel.com> Signed-off-by: bavery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 57be15a62..aa939d044 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: