From cf82657d4ed5c8df0ed9af4ee226235c67c957ed Mon Sep 17 00:00:00 2001 From: Vlad Chiovianu Date: Thu, 4 Apr 2024 16:56:51 +0300 Subject: [PATCH] uncomments --- app/Exceptions/Handler.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); }