made sentry config for prod only (#1417)

added monolog example config to omit confusion
This commit is contained in:
Robin Lehrmann
2022-07-08 13:46:25 +02:00
committed by GitHub
parent 1d55e9af57
commit 7d2620320e
3 changed files with 23 additions and 3 deletions
@@ -0,0 +1,22 @@
sentry:
dsn: '%env(SENTRY_DSN)%'
options:
excluded_exceptions:
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- Symfony\Component\Security\Core\Exception\AccessDeniedException
# If you are using Monolog, you also need these additional configuration and services to log the errors correctly:
# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration
# register_error_listener: false
# monolog:
# handlers:
# sentry:
# type: service
# id: Sentry\Monolog\Handler
# services:
# Sentry\Monolog\Handler:
# arguments:
# $hub: '@Sentry\State\HubInterface'
# $level: !php/const Monolog\Logger::ERROR
@@ -1,2 +0,0 @@
sentry:
dsn: '%env(SENTRY_DSN)%'
+1 -1
View File
@@ -1,6 +1,6 @@
{
"bundles": {
"Sentry\\SentryBundle\\SentryBundle": ["all"]
"Sentry\\SentryBundle\\SentryBundle": ["prod"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"