Add Sentry integration

This commit is contained in:
shibafu
2020-07-16 22:11:42 +09:00
parent 6c3bcd57c5
commit 19d4ba5e40
5 changed files with 1211 additions and 265 deletions

View File

@@ -32,6 +32,10 @@ class Handler extends ExceptionHandler
*/
public function report(Exception $exception)
{
if (app()->bound('sentry') && $this->shouldReport($exception)) {
app('sentry')->captureException($exception);
}
parent::report($exception);
}