Skip to content

Commit

Permalink
Printing httplib.HTTPException.headers CRAB3 server response. HC-333
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentina Mancinelli committed Jun 6, 2016
1 parent e26e634 commit d4d3225
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/CRABTools/CRABBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def master_submit(self, rjobs, subjobconfigs, masterjobconfig):
job.updateStatus('submitted')

except httplib.HTTPException as e:
logger.error(e.headers)
logger.error(e.result)
return False
except ConfigurationException as ce:
Expand All @@ -150,6 +151,7 @@ def master_submit(self, rjobs, subjobconfigs, masterjobconfig):
job.updateStatus('submitted')

except httplib.HTTPException as e:
logger.error(e.headers)
logger.error(e.result)

else:
Expand Down Expand Up @@ -194,6 +196,7 @@ def master_kill(self):

except httplib.HTTPException as e:
logger.error("Error while killing job %s" % job.id)
logger.error(e.headers)
logger.error(e.result)
return False
except ConfigurationException as ce:
Expand All @@ -215,6 +218,7 @@ def master_kill(self):

job.updateMasterJobStatus()
except httplib.HTTPException as e:
logger.error(e.headers)
logger.error(e.result)

return True
Expand Down Expand Up @@ -328,6 +332,7 @@ def master_updateMonitoringInformation(jobs):
statusresult = crabCommand('status', dir = crab_work_dir, proxy = '/data/hc/apps/cms/config/x509up_production2', long=True)
logger.info("CRAB3 Status result: %s" % statusresult)
except httplib.HTTPException as e:
logger.error(e.headers)
logger.error(e.result)

try:
Expand Down

0 comments on commit d4d3225

Please sign in to comment.