add some helpful log messages
authorDiane Trout <diane@caltech.edu>
Sat, 13 Dec 2014 00:33:22 +0000 (16:33 -0800)
committerDiane Trout <diane@caltech.edu>
Sat, 13 Dec 2014 00:33:22 +0000 (16:33 -0800)
htsworkflow/submission/encoded.py

index 1427c0f46392bb836ba30177f3a80b61a10461d9..f38c039e56062402eb1517ef943b3671279ec1f0 100644 (file)
@@ -239,6 +239,7 @@ class ENCODED:
         """Given a dictionary of changes push them as a HTTP patch request
         """
         url = self.prepare_url(obj_id)
+        LOGGER.info('PATCHing to %s', url)
         payload = json.dumps(changes)
         response = requests.patch(url, auth=self.auth, headers=self.json_headers, data=payload)
         if response.status_code != requests.codes.ok:
@@ -249,6 +250,7 @@ class ENCODED:
 
     def put_json(self, obj_id, new_object):
         url = self.prepare_url(obj_id)
+        LOGGER.info('PUTing to %s', url)
         payload = json.dumps(new_object)
         response = requests.put(url, auth=self.auth, headers=self.json_headers, data=payload)
         if response.status_code != requests.codes.created:
@@ -258,6 +260,7 @@ class ENCODED:
 
     def post_json(self, collection_id, new_object):
         url = self.prepare_url(collection_id)
+        LOGGER.info('POSTing to %s', url)
         payload = json.dumps(new_object)
 
         response = requests.post(url, auth=self.auth, headers=self.json_headers, data=payload)