Skip to content

Commit 0cf5de5

Browse files
fix: log Zoom token refresh errors at ERROR level (calcom#26547)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 2aed990 commit 0cf5de5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/app-store/zoomvideo/lib/VideoApiAdapter.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,16 @@ const ZoomVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
421421
clonedResponse: responseToUseInCaseOfError,
422422
});
423423
}
424-
myLog.debug(safeStringify({ responseBody }));
424+
// Log error details from Zoom (excluding any sensitive token data)
425+
myLog.error(
426+
"Zoom token refresh failed",
427+
safeStringify({
428+
status: response.status,
429+
error: responseBody.error,
430+
errorDescription: responseBody.error_description,
431+
reason: responseBody.reason,
432+
})
433+
);
425434

426435
if (responseBody.error === "invalid_grant") {
427436
return { reason: responseBody.error };

0 commit comments

Comments
 (0)