diff --git a/.env.example b/.env.example index 6810317fdf..af3fc69a18 100644 --- a/.env.example +++ b/.env.example @@ -281,7 +281,9 @@ TRACKER_URL= # This is entirely optional of course. If you run into errors, I will gladly accept GitHub # issues or a forwared email message. # -TRACK_ERRORS=false +# 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 12801ca009..8db203a421 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -85,7 +85,7 @@ class Handler extends ExceptionHandler #[Override] public function register(): void { - if (true === config('firefly.track_errors')) { + if (true === config('firefly.report_errors_online')) { $this->reportable(function (Throwable $e): void { Integration::captureUnhandledException($e); }); diff --git a/config/firefly.php b/config/firefly.php index 98774cc377..92120370f0 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -107,7 +107,7 @@ return [ 'demo_password' => env('DEMO_PASSWORD', ''), 'tracker_site_id' => env('TRACKER_SITE_ID', ''), 'tracker_url' => env('TRACKER_URL', ''), - 'track_errors' => env('TRACK_ERRORS', false), + 'report_errors_online' => env('REPORT_ERRORS_ONLINE', false), // authentication settings 'authentication_guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),