diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-11-01 17:05:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-16 10:37:36 +0000 |
commit | 61cc397a5b7136afb37052a2860c6c39a176ddab (patch) | |
tree | ca584f5d1e13300ea7090d68006f481c4bff6d58 | |
parent | 59c606cfc6e0a4f367344d4e3def6017fb560d75 (diff) | |
download | bitbake-61cc397a5b7136afb37052a2860c6c39a176ddab.tar.gz |
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bin/bitbake-worker | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker index 500f2ad16..af66ff05c 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: |