chore: Bugsnag -> Sentry (#1178)

* Bugsnag -> Sentry

* fix: Import style
This commit is contained in:
Tom Moor
2020-02-16 22:58:50 -08:00
committed by GitHub
parent 8fbd4a7463
commit c15cbd06a4
15 changed files with 157 additions and 238 deletions

View File

@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
import debug from 'debug';
import bugsnag from 'bugsnag';
import * as Sentry from '@sentry/node';
import nodemailer from 'nodemailer';
import Oy from 'oy-vey';
import { createQueue } from './utils/queue';
@ -83,7 +83,7 @@ export class Mailer {
attachments: data.attachments,
});
} catch (err) {
bugsnag.notify(err);
Sentry.captureException(err);
throw err; // Re-throw for queue to re-try
}
}