mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added captureException helper to Sentry integration
no issue - this allows us to custom capture exceptions
This commit is contained in:
parent
8f789523e3
commit
4fda464103
1 changed files with 4 additions and 2 deletions
|
@ -20,11 +20,13 @@ if (sentryConfig && !sentryConfig.disabled) {
|
||||||
// Only handle 500 errors for now
|
// Only handle 500 errors for now
|
||||||
return (error.statusCode === 500);
|
return (error.statusCode === 500);
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
|
captureException: Sentry.captureException
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
requestHandler: expressNoop,
|
requestHandler: expressNoop,
|
||||||
errorHandler: expressNoop
|
errorHandler: expressNoop,
|
||||||
|
captureException: () => {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue