Skip to content

Commit

Permalink
🥅 server: report bad collection to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Oct 23, 2024
1 parent 0c4f6e2 commit 49e2485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/hooks/cryptomate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export default new Hono().post(
) !== amount
) {
debug(`${payload.event_type}:${payload.status}`, payload.operation_id, "bad collection");
captureException(new Error("bad collection"), { level: "warning", contexts: { tx: { trace } } });
return c.json({ response_code: "51" });
}
return c.json({ response_code: "00" });
Expand Down

0 comments on commit 49e2485

Please sign in to comment.