[bitbake-devel] [PATCH 01/17] runqueue: improve exception logging
bavery
brian.avery at intel.com
Tue Jul 12 22:54:42 UTC 2016
From: Ed Bartosh <ed.bartosh at linux.intel.com>
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.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: bavery <brian.avery at intel.com>
---
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..ad14997 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 occured in runqueue")
try:
self.teardown_workers()
except:
--
1.9.1
More information about the bitbake-devel
mailing list