Skip to content

Commit 0c9c8a8

Browse files
Change how sentry ignores exceptions
1 parent f23f4fb commit 0c9c8a8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

webapp/config/packages/sentry.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,5 @@ when@prod:
22
sentry:
33
dsn: '%env(SENTRY_DSN)%'
44
options:
5-
integrations:
6-
- 'Sentry\Integration\IgnoreErrorsIntegration'
7-
8-
services:
9-
Sentry\Integration\IgnoreErrorsIntegration:
10-
arguments:
11-
$options:
12-
ignore_exceptions:
13-
# Ignore this exception. It is thrown before being redirected
14-
# to a login page or showing a 403. The former we do not want
15-
# to show in Sentry and the latter triggers a AccessDeniedHttpException
16-
- Symfony\Component\Security\Core\Exception\AccessDeniedException
5+
ignore_exceptions:
6+
- Symfony\Component\Security\Core\Exception\AccessDeniedException

0 commit comments

Comments
 (0)