Switch to @sentry/node
This commit is contained in:
parent
2a39b2a8e3
commit
b5f99b217a
5 changed files with 124 additions and 49 deletions
|
@ -2,7 +2,7 @@ import debuglog from 'debug';
|
|||
|
||||
const debug = debuglog('combine.fm');
|
||||
|
||||
export default function (raven) {
|
||||
export default function (Sentry) {
|
||||
return async function error(ctx, next) {
|
||||
ctx.set('Server', 'Nintendo 64');
|
||||
try {
|
||||
|
@ -15,7 +15,7 @@ export default function (raven) {
|
|||
ctx.body = err.error;
|
||||
} else {
|
||||
debug('Error: %o', err);
|
||||
raven.captureException(err);
|
||||
Sentry.captureException(err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue