diff --git a/.env.example b/.env.example index af3fc69a18..e6737be1e7 100644 --- a/.env.example +++ b/.env.example @@ -275,16 +275,6 @@ DISABLE_CSP_HEADER=false TRACKER_SITE_ID= TRACKER_URL= -# -# You can automatically submit errors to the Firefly III developer using sentry.io -# -# This is entirely optional of course. If you run into errors, I will gladly accept GitHub -# issues or a forwared email message. -# -# If you set this to true, your installation will try to contact sentry.io when it runs into errors. -# -REPORT_ERRORS_ONLINE=false - # # Firefly III supports webhooks. These are security sensitive and must be enabled manually first. # diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 5322b93e08..934040a0b7 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -42,7 +42,6 @@ use Illuminate\Validation\ValidationException as LaravelValidationException; use Laravel\Passport\Exceptions\OAuthServerException as LaravelOAuthException; use League\OAuth2\Server\Exception\OAuthServerException; use Override; -use Sentry\Laravel\Integration; use Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; @@ -85,11 +84,6 @@ class Handler extends ExceptionHandler #[Override] public function register(): void { - if (true === config('firefly.report_errors_online')) { - $this->reportable(function (Throwable $e): void { - Integration::captureUnhandledException($e); - }); - } } /** diff --git a/composer.json b/composer.json index 51404b0790..0208b1e63d 100644 --- a/composer.json +++ b/composer.json @@ -103,7 +103,6 @@ "psr/log": "<4", "ramsey/uuid": "^4.7", "rcrowe/twigbridge": "^0.14", - "sentry/sentry-laravel": "^4.18", "spatie/laravel-html": "^3.2", "spatie/laravel-ignition": "^2", "spatie/period": "^2.4", diff --git a/config/firefly.php b/config/firefly.php index 8b4a44dbdd..e4fcb6f898 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -107,7 +107,6 @@ return [ 'demo_password' => env('DEMO_PASSWORD', ''), 'tracker_site_id' => env('TRACKER_SITE_ID', ''), 'tracker_url' => env('TRACKER_URL', ''), - 'report_errors_online' => env('REPORT_ERRORS_ONLINE', false), // authentication settings 'authentication_guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),