[bitbake-devel] [PATCH 1/7] runqueue: improve exception logging
brian avery
avery.brian at gmail.com
Sat Jul 9 00:52:41 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: brian avery <brian.avery at intel.com>
---
lib/bb/runqueue.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 57be15a..04f2f4c 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1219,8 +1219,10 @@ 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:
+ import traceback
+ logger.error("An uncaught exception occured in runqueue: '%s'" % err)
+ logger.error(traceback.format_exc())
try:
self.teardown_workers()
except:
--
1.9.1
More information about the bitbake-devel
mailing list