You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:24:08 UTC
[buildstream] 25/25: TEMP: job: print detail on exception
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch aevri/win32_minimal
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 4d5ff563ff9880360bf79f755c6752b21586cd2b
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Fri Oct 4 12:25:23 2019 +0100
TEMP: job: print detail on exception
Since we're not properly propagating errors back to the main process
yet, at least print problems out.
---
src/buildstream/_scheduler/jobs/job.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/buildstream/_scheduler/jobs/job.py b/src/buildstream/_scheduler/jobs/job.py
index 4aa7a11..daa5233 100644
--- a/src/buildstream/_scheduler/jobs/job.py
+++ b/src/buildstream/_scheduler/jobs/job.py
@@ -850,6 +850,8 @@ class ChildJob():
elapsed = datetime.datetime.now() - starttime
detail = "An unhandled exception occured:\n\n{}".format(traceback.format_exc())
+ print(detail)
+
self.message(MessageType.BUG, self.action_name,
elapsed=elapsed, detail=detail,
logfile=filename)