Skip to content

Commit

Permalink
update endpoint-exception counter message
Browse files Browse the repository at this point in the history
  • Loading branch information
S0naliThakur committed Jul 9, 2024
1 parent 82100da commit 4d75f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class NetworkClass extends EventEmitter {
handleError(error: any, req: any, res: any, route: string) {
/* prettier-ignore */ if (logFlags.error) this.mainLogger.error(`Error in route ${route}: ${error.message}`)

nestedCountersInstance.countEvent('endpoint-exception', `error-${route}`)
nestedCountersInstance.countEvent('endpoint-exception', `${route}`)

// Send an error response
res.status(500).json({
Expand Down

0 comments on commit 4d75f79

Please sign in to comment.