add sentry report

This commit is contained in:
2020-10-03 10:14:08 +02:00
parent 5c2e766f3b
commit 9de9608c06
6 changed files with 1162 additions and 1 deletions

View File

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