chore(deps): update sentry version, sentry handler

This commit is contained in:
2023-07-02 00:01:22 +01:00
parent 498534e9c0
commit 2cfdabeb62
3 changed files with 16 additions and 28 deletions

View File

@@ -22,6 +22,7 @@
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Sentry\Laravel\Integration;
use Throwable;
class Handler extends ExceptionHandler
@@ -45,21 +46,11 @@ class Handler extends ExceptionHandler
'password_confirmation',
];
/**
* Report or log an exception.
*
* @param \Throwable $exception
* @return void
*
* @throws \Exception
*/
public function report(Throwable $exception)
public function register(): void
{
if (app()->bound('sentry') && $this->shouldReport($exception)) {
app('sentry')->captureException($exception);
}
parent::report($exception);
$this->reportable(function (Throwable $e) {
Integration::captureUnhandledException($e);
});
}
/**