fix: Log errors to console when Sentry not installed
This commit is contained in:
@@ -83,7 +83,9 @@ export class Mailer {
|
||||
attachments: data.attachments,
|
||||
});
|
||||
} catch (err) {
|
||||
Sentry.captureException(err);
|
||||
if (process.env.SENTRY_DSN) {
|
||||
Sentry.captureException(err);
|
||||
}
|
||||
throw err; // Re-throw for queue to re-try
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user