[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3188/8267] bitbake: bitbake-worker: print full traceback instead of message only
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 3188/8267] bitbake: bitbake-worker: print full traceback instead of message only
- Date: Sun, 17 Dec 2017 00:16:58 +0000 (UTC)
commit 7abab61cf4ef9c3b7f5b8085e96ac5187a10549c
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date: Tue Nov 1 17:05:12 2016 +0200
bitbake: 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]
(Bitbake rev: 9c7cc981408c9b4bbbff98ae93ff22199f6a8219)
Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/bin/bitbake-worker | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index 500f2ad..af66ff0 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]