From 1ea3021e3374934126303338776a6ae97d916051 Mon Sep 17 00:00:00 2001 From: Abdhesh Nayak Date: Tue, 19 Dec 2023 18:53:54 +0530 Subject: [PATCH] :rocket: Added error log for the api call to debug in deployments (#37) --- lib/server/helpers/execute-query-with-context.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/server/helpers/execute-query-with-context.ts b/lib/server/helpers/execute-query-with-context.ts index 3f57ef066..664d2299e 100644 --- a/lib/server/helpers/execute-query-with-context.ts +++ b/lib/server/helpers/execute-query-with-context.ts @@ -92,6 +92,7 @@ export const ExecuteQueryWithContext = ( } return { ...resp.data, data }; } catch (err) { + console.error('ErrorIn:', apiName); if ((err as AxiosError).response) { return (err as AxiosError).response?.data; }