Skip to content

Commit

Permalink
[connectors] Improve logging on Zendesk API errors (#8853)
Browse files Browse the repository at this point in the history
* 🔊 add the response to the log on Zendesk API errors

* 🔊 add the status to the logs on Zendesk API error
  • Loading branch information
aubin-tchoi authored Nov 22, 2024
1 parent 56e3795 commit b3758e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connectors/src/connectors/zendesk/lib/zendesk_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ async function fetchFromZendeskWithRetries({
return null;
}
}
logger.error({ rawResponse }, "[Zendesk] Zendesk API error");
logger.error(
{ rawResponse, response, status: rawResponse.status },
"[Zendesk] Zendesk API error"
);
throw new Error("Zendesk API error.");
}

Expand Down

0 comments on commit b3758e3

Please sign in to comment.