[oe-commits] [bitbake] 05/20: bitbake-worker: print full traceback instead of message only
git at git.openembedded.org
git at git.openembedded.org
Thu Nov 3 13:34:21 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 57e972a3e30708cc4b83acd759db7a6d617ec208
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Tue Nov 1 17:05:12 2016 +0200
bitbake-worker: print full traceback instead of message only
Print full traceback instead of just the exception message in the
child() function inside fork_off_task(). This makes debugging a lot
easier as the function catches a generic "Exception" and the exception
message alone might not give much information.
[YOCTO #10393]
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bin/bitbake-worker | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/bitbake-worker b/bin/bitbake-worker
index 6f7f9f9..c2722a7 100755
--- a/bin/bitbake-worker
+++ b/bin/bitbake-worker
@@ -11,6 +11,7 @@ import select
import errno
import signal
import pickle
+import traceback
from multiprocessing import Lock
if sys.getfilesystemencoding() != "utf-8":
@@ -234,9 +235,9 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, append
if quieterrors:
the_data.setVarFlag(taskname, "quieterrors", "1")
- except Exception as exc:
+ except Exception:
if not quieterrors:
- logger.critical(str(exc))
+ logger.critical(traceback.format_exc())
os._exit(1)
try:
if cfg.dry_run:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list