Commit 2d78f8ff authored by Alexander Pace's avatar Alexander Pace Committed by Chad Hanna

inspiral.py: add verbose logging to stderr on failed gracedb uploads

parent 875a994c
......@@ -760,6 +760,7 @@ class GracedBWrapper(object):
gracedb_ids.append(resp_json["graceid"])
break
print >>sys.stderr, "gracedb upload of %s failed on attempt %d/%d: %d: %s" % (filename, attempt, self.retries, resp.status, httplib.responses.get(resp.status, "Unknown"))
print >>sys.stderr, resp_json
time.sleep(random.lognormal(math.log(self.retry_delay), .5))
else:
print >>sys.stderr, "gracedb upload of %s failed" % filename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment