diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index b2b42239..fb5276c2 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -3,7 +3,9 @@ namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Illuminate\Support\Facades\App; use LaravelEnso\Helpers\Exceptions\EnsoException; +use LaravelEnso\Sentry\Exceptions\Handler as Sentry; use Throwable; class Handler extends ExceptionHandler @@ -18,9 +20,9 @@ class Handler extends ExceptionHandler public function report(Throwable $exception) { - // if (App::bound('sentry') && $this->shouldReport($exception)) { - // Sentry::report($exception); - // } + if (App::bound('sentry') && $this->shouldReport($exception)) { + Sentry::report($exception); + } parent::report($exception); }