From 2062ea582d64a055d7a104ae45888aa7b4a610f9 Mon Sep 17 00:00:00 2001 From: Dave Dozier <2555178+dwdozier@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:21:39 -0400 Subject: [PATCH] debug logging test --- src/run.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/run.ts b/src/run.ts index 44c25c3..f40f029 100644 --- a/src/run.ts +++ b/src/run.ts @@ -28,6 +28,7 @@ export default async function fetchWithRetry( let timeoutId; try { + console.log(`Fetching ${url} with ${timeoutInSeconds} seconds timeout and will try ${tries} time(s).`); controller = new AbortController(); timeoutId = setTimeout(() => controller.abort(), timeoutInSeconds * 1000); response = await fetch(url, { @@ -37,6 +38,8 @@ export default async function fetchWithRetry( ...headers }, ...init}); + console.log(`Response status: ${response.status}`); + console.log(`timeoutId: ${timeoutId}`); clearTimeout(timeoutId); if (response.ok) {