Shuffle reportable exceptions

This commit is contained in:
David Bomba 2023-05-20 19:33:37 +10:00
parent 3d44778848
commit b896c2c590

View File

@ -17,7 +17,6 @@ use App\Utils\Ninja;
use Sentry\State\Scope;
use Illuminate\Support\Arr;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Sentry\Laravel\Integration;
use Illuminate\Support\Facades\Schema;
use GuzzleHttp\Exception\ConnectException;
@ -35,21 +34,22 @@ use Symfony\Component\Console\Exception\CommandNotFoundException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
use InvalidArgumentException;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
* @var array<int, class-string<Throwable>>
*/
protected $dontReport = [
// PDOException::class,
// MaxAttemptsExceededException::class,
// CommandNotFoundException::class,
// ValidationException::class,
MaxAttemptsExceededException::class,
CommandNotFoundException::class,
ValidationException::class,
// ModelNotFoundException::class,
// NotFoundHttpException::class,
NotFoundHttpException::class,
];
protected $selfHostDontReport = [