From 3c7d61febee055aa10edc5bdb1e7d9072f7a057c Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Tue, 26 Jan 2021 14:49:42 +0200 Subject: [PATCH] Fix return HTTP 403 reason with or without verbose (#315) --- src/ApiClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiClient.ts b/src/ApiClient.ts index 2354577..ac7a7b6 100644 --- a/src/ApiClient.ts +++ b/src/ApiClient.ts @@ -34,9 +34,9 @@ export class ApiClient { return true; } logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`); - logger.verbose('Here is the error message: '); + logger.warn('Here is the error message: '); console.dir(err.response?.data); - logger.verbose('We called this URL: ' + err.response?.config.baseURL + err.response?.config.url); + logger.warn('We called this URL: ' + err.response?.config.baseURL + err.response?.config.url); const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);