Skip to content

Commit daa0c18

Browse files
committed
adding debug output if needed
1 parent a2d65ea commit daa0c18

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

singularity/build/google.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ def finish_build(verbose=True):
338338
file_name=params['logfile'])
339339

340340
# Close up shop
341-
#TODO: need to add more delay here
342341
send_build_close(params=params,
343342
response_url=params['logging_url'])
344343

singularity/build/main.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def send_build_data(build_dir, data, secret,
238238

239239
if response_url is not None:
240240
finish = requests.post(response_url,data=data, headers=headers)
241-
bot.debug("POST BACK TO SINGULARITY HUB ---------------------")
241+
bot.debug("RECEIVE POST TO SINGULARITY HUB ---------------------")
242242
bot.debug(finish.status_code)
243243
bot.debug(finish.reason)
244244
else:
@@ -278,5 +278,8 @@ def send_build_close(params,response_url):
278278

279279
headers = {'Authorization': signature }
280280

281-
# Send it back!
282-
return requests.post(response_url,data=response, headers=headers)
281+
finish = requests.post(response_url,data=response, headers=headers)
282+
bot.debug("FINISH POST TO SINGULARITY HUB ---------------------")
283+
bot.debug(finish.status_code)
284+
bot.debug(finish.reason)
285+
return finish

0 commit comments

Comments
 (0)