diff --git a/src/ApiClient.ts b/src/ApiClient.ts index cd14d32..3974be7 100644 --- a/src/ApiClient.ts +++ b/src/ApiClient.ts @@ -34,10 +34,10 @@ export class ApiClient { return true; } logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`); - logger.verbose('Here is the error message: \n' + + logger.warn('Here is the error message: \n' + JSON.stringify(err.response?.data ?? undefined) + '\nRetrying request...'); - 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);