Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created December 20, 2016 08:13
Show Gist options
  • Save justinvdm/3c9f740a90ec34d2f22f47c78f05db59 to your computer and use it in GitHub Desktop.
Save justinvdm/3c9f740a90ec34d2f22f47c78f05db59 to your computer and use it in GitHub Desktop.
diff --git a/mentorship/comms/models.py b/mentorship/comms/models.py
index b8e9d1a..d27c644 100644
--- a/mentorship/comms/models.py
+++ b/mentorship/comms/models.py
@@ -20,6 +20,10 @@ def make_post_request(url, data, headers=None):
data=data,
headers=headers)
+ log.info(
+ 'Received response: code=%r body=%r' %
+ (response.status_code, response.text))
+
response.raise_for_status()
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment