Skip to content

Commit

Permalink
fix: logs error in addition to sending them to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve committed Nov 24, 2023
1 parent 2da7a97 commit 6505522
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/src/third-parties/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ if (sentryEnabled) {
}

function capture(err, context = {}) {
if (!sentryEnabled) {
console.log("capture", err, JSON.stringify(context));
return;
}
console.log("capture", err, JSON.stringify(context));

if (typeof context === "string") {
context = JSON.parse(context);
Expand Down

0 comments on commit 6505522

Please sign in to comment.