From 5116bc281d6b2189902b725c284a2b1bb65cc005 Mon Sep 17 00:00:00 2001 From: gimenes Date: Sat, 5 Aug 2023 14:42:58 -0300 Subject: [PATCH 1/2] remove warn and leave functions to log the error --- utils/fetch.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/fetch.ts b/utils/fetch.ts index 1611063c..6af5efe6 100644 --- a/utils/fetch.ts +++ b/utils/fetch.ts @@ -72,7 +72,6 @@ export const fetchSafe = async ( return response; } - console.error(`${input}\n`, response, `\n`); throw new HttpError(response.status, `${input}`); }; From a04783c5f44bb24df458822ad91e627d2360858b Mon Sep 17 00:00:00 2001 From: gimenes Date: Sat, 5 Aug 2023 14:44:21 -0300 Subject: [PATCH 2/2] use warn --- utils/fetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/fetch.ts b/utils/fetch.ts index 6af5efe6..fee1825e 100644 --- a/utils/fetch.ts +++ b/utils/fetch.ts @@ -72,6 +72,7 @@ export const fetchSafe = async ( return response; } + console.warn(`${input}\n`, response, `\n`); throw new HttpError(response.status, `${input}`); };