add sentry report

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

No files matched your search

+4
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);
}