Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Jul 18, 2023
1 parent d1cae33 commit 1d73a9f
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 @@ -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) } })
Expand Down

0 comments on commit 1d73a9f

Please sign in to comment.