diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-08 12:28:54 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-27 11:53:02 +0000 |
commit | 67dfff1a343a5337b831eaa9dc55c0b8908b7fb8 (patch) | |
tree | 65064469116f755f55f5e3a0ffe28c54926ba7c3 /gear/worker.py | |
parent | 210625c3986a659f9d6053af0b8655279c6417a1 (diff) | |
download | morph-67dfff1a343a5337b831eaa9dc55c0b8908b7fb8.tar.gz |
Add debug code for build-graph failures
Change-Id: I72977b36a03b11120a2230a48e86fce356f7e3b2
Diffstat (limited to 'gear/worker.py')
-rw-r--r-- | gear/worker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gear/worker.py b/gear/worker.py index 0b46a221..35281ca3 100644 --- a/gear/worker.py +++ b/gear/worker.py @@ -27,6 +27,10 @@ while True: cmd = ['morph', 'calculate-build-graph', '--quiet', bg_request['repo'], bg_request['ref'], bg_request['system']] p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True) output = p.stdout.read() + # TODO: catch errors calculating build-graph here instead of sending the error as build-graph :) + print "=====" + print output + print "=====" print "DEBUG: finished computing build graph" job.sendWorkComplete(output) |