Skip to content

Commit

Permalink
revert env
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Sep 19, 2023
1 parent 609b90f commit 6424857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/iamError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) } })
Expand Down

0 comments on commit 6424857

Please sign in to comment.