Skip to content

Commit

Permalink
confluence: dump headers content (#9128)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Dec 4, 2024
1 parent d8c3779 commit 1b612cf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,12 @@ export class ConfluenceClient {
if (retryCount < MAX_RATE_LIMIT_RETRY_COUNT) {
const delayMs = getRetryAfterDuration(response);
logger.warn(
{ endpoint, retryCount, delayMs, headers: response.headers },
{
endpoint,
retryCount,
delayMs,
headers: Object.fromEntries(response.headers.entries()),
},
"[Confluence] Rate limit hit, retrying after delay"
);
await setTimeoutAsync(delayMs);
Expand Down

0 comments on commit 1b612cf

Please sign in to comment.