fix: log Zoom token refresh errors at ERROR level (#26547)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
2aed9908b7
commit
0cf5de5ef8
1 file changed
+10
-1
@@ -421,7 +421,16 @@ const ZoomVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
|
|||||||
clonedResponse: responseToUseInCaseOfError,
|
clonedResponse: responseToUseInCaseOfError,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
myLog.debug(safeStringify({ responseBody }));
|
// Log error details from Zoom (excluding any sensitive token data)
|
||||||
|
myLog.error(
|
||||||
|
"Zoom token refresh failed",
|
||||||
|
safeStringify({
|
||||||
|
status: response.status,
|
||||||
|
error: responseBody.error,
|
||||||
|
errorDescription: responseBody.error_description,
|
||||||
|
reason: responseBody.reason,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
if (responseBody.error === "invalid_grant") {
|
if (responseBody.error === "invalid_grant") {
|
||||||
return { reason: responseBody.error };
|
return { reason: responseBody.error };
|
||||||
|
|||||||
Reference in new issue
Block a user