Skip to content

Commit

Permalink
ignore exceptions sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
qdequippe committed Nov 21, 2024
1 parent d08ca30 commit e95f701
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/packages/sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpFoundation\Exception\BadRequestException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;

return static function (ContainerConfigurator $containerConfigurator): void {
Expand All @@ -11,6 +14,11 @@
'dsn' => env('SENTRY_DSN'),
'register_error_listener' => false,
'register_error_handler' => false,
'ignore_exceptions' => [
NotFoundHttpException::class,
BadRequestException::class,
MethodNotAllowedHttpException::class,
],
]);
}
};

0 comments on commit e95f701

Please sign in to comment.