From 642485757e561515bdb61a225e2a2f9618d9c66a Mon Sep 17 00:00:00 2001 From: Danh Date: Tue, 19 Sep 2023 10:12:02 +0700 Subject: [PATCH] revert env --- 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 70ee08c3a5..1c54307ae9 100644 --- a/src/utils/iamError.ts +++ b/src/utils/iamError.ts @@ -26,7 +26,7 @@ const ERROR_THRESHOLD = 2 const isApiDown = (type: ErrorType) => ErrorInfo[type]?.errorCount >= ERROR_THRESHOLD const sendError = (name: string, apiUrl: string, trackData: any) => { - if (false && ENV_LEVEL < ENV_TYPE.STG) return + if (ENV_LEVEL < ENV_TYPE.STG) return const error = new Error(`${name} Error: ${apiUrl}`) error.name = `${name} was down` captureException(error, { level: 'fatal', extra: { args: JSON.stringify(trackData, null, 2) } })