From bb7f52f719ea2a72d0315e4c8c2422bbb9dc59e5 Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Wed, 9 Apr 2025 10:33:50 -0700 Subject: [PATCH] more debug logging Signed-off-by: Brian DeHamer --- dist/index.js | 2 ++ 1 file changed, 2 insertions(+) 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;