From cd35fdc2cbd8fc3a9f93ba5f5746eb754b4e1838 Mon Sep 17 00:00:00 2001
From: Alexander Pace <alexander.pace@Lligo.org>
Date: Thu, 14 Mar 2019 09:05:07 -0700
Subject: [PATCH] inspiral.py: add verbose logging to stderr on failed gracedb
 uploads

---
 gstlal-inspiral/python/inspiral.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gstlal-inspiral/python/inspiral.py b/gstlal-inspiral/python/inspiral.py
index ac4ac5e6f0..76dbb37cda 100644
--- a/gstlal-inspiral/python/inspiral.py
+++ b/gstlal-inspiral/python/inspiral.py
@@ -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
-- 
GitLab