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-04 12:50:55 +0000 |
commit | 7abab61cf4ef9c3b7f5b8085e96ac5187a10549c (patch) | |
tree | 0f6fca6fc1213efb65a983fa929a0713f2c891b6 /bitbake | |
parent | c5f609edbf64da9d7d32be057f1b6b824f749d6c (diff) | |
download | poky-7abab61cf4ef9c3b7f5b8085e96ac5187a10549c.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | 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 500f2ad161..af66ff05c8 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -11,6 +11,7 @@ import select | |||
11 | import errno | 11 | import errno |
12 | import signal | 12 | import signal |
13 | import pickle | 13 | import pickle |
14 | import traceback | ||
14 | from multiprocessing import Lock | 15 | from multiprocessing import Lock |
15 | 16 | ||
16 | if sys.getfilesystemencoding() != "utf-8": | 17 | if sys.getfilesystemencoding() != "utf-8": |
@@ -234,9 +235,9 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, append | |||
234 | if quieterrors: | 235 | if quieterrors: |
235 | the_data.setVarFlag(taskname, "quieterrors", "1") | 236 | the_data.setVarFlag(taskname, "quieterrors", "1") |
236 | 237 | ||
237 | except Exception as exc: | 238 | except Exception: |
238 | if not quieterrors: | 239 | if not quieterrors: |
239 | logger.critical(str(exc)) | 240 | logger.critical(traceback.format_exc()) |
240 | os._exit(1) | 241 | os._exit(1) |
241 | try: | 242 | try: |
242 | if cfg.dry_run: | 243 | if cfg.dry_run: |