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) } })