mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
freshdesk: log payload on webhook errors.
(imported from commit 42bdf56248cbfa1d0b2d39151dd99bdd8a807734)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user