From 1d73a9f42ea534aeaa4d10c3dc0d96bcb61ebe91 Mon Sep 17 00:00:00 2001 From: Danh Date: Tue, 18 Jul 2023 17:06:58 +0700 Subject: [PATCH] test --- src/utils/iamError.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/iamError.ts b/src/utils/iamError.ts index 9127340a2a..9b49bc400d 100644 --- a/src/utils/iamError.ts +++ b/src/utils/iamError.ts @@ -17,7 +17,7 @@ const isIamApiDown = () => ErrorInfo.iamApoError >= ErrorInfo.errorThreshold const isRouteApiDown = () => ErrorInfo.routeApiError >= ErrorInfo.errorThreshold const sendError = (name: string, apiUrl: string, trackData: any) => { - if (ENV_LEVEL < ENV_TYPE.STG) return + if (ENV_LEVEL < ENV_TYPE.DEV) return const error = new Error(`${name} Error: ${apiUrl}`) error.name = `${name} was down` captureException(error, { level: 'fatal', extra: { args: JSON.stringify(trackData, null, 2) } })