freshdesk: log payload on webhook errors.

(imported from commit 42bdf56248cbfa1d0b2d39151dd99bdd8a807734)
This commit is contained in:
Jessica McKellar
2014-01-02 10:58:42 -05:00
parent fb0c78b946
commit 692ad53941

View File

@@ -682,6 +682,8 @@ def api_freshdesk_webhook(request, user_profile, stream=REQ(default='')):
for key in required_keys:
if not ticket_data.get(key):
logging.warning("Freshdesk webhook error. Payload was:")
logging.warning(request.body)
return json_error("Missing key %s in JSON" % (key,))
try: