Rename the variable so there is no doubt what it does.

This commit is contained in:
James Cole
2025-11-04 05:50:06 +01:00
parent 5be32b1675
commit eda81ef7b5
3 changed files with 5 additions and 3 deletions

View File

@@ -281,7 +281,9 @@ TRACKER_URL=
# This is entirely optional of course. If you run into errors, I will gladly accept GitHub # This is entirely optional of course. If you run into errors, I will gladly accept GitHub
# issues or a forwared email message. # 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. # Firefly III supports webhooks. These are security sensitive and must be enabled manually first.

View File

@@ -85,7 +85,7 @@ class Handler extends ExceptionHandler
#[Override] #[Override]
public function register(): void public function register(): void
{ {
if (true === config('firefly.track_errors')) { if (true === config('firefly.report_errors_online')) {
$this->reportable(function (Throwable $e): void { $this->reportable(function (Throwable $e): void {
Integration::captureUnhandledException($e); Integration::captureUnhandledException($e);
}); });

View File

@@ -107,7 +107,7 @@ return [
'demo_password' => env('DEMO_PASSWORD', ''), 'demo_password' => env('DEMO_PASSWORD', ''),
'tracker_site_id' => env('TRACKER_SITE_ID', ''), 'tracker_site_id' => env('TRACKER_SITE_ID', ''),
'tracker_url' => env('TRACKER_URL', ''), 'tracker_url' => env('TRACKER_URL', ''),
'track_errors' => env('TRACK_ERRORS', false), 'report_errors_online' => env('REPORT_ERRORS_ONLINE', false),
// authentication settings // authentication settings
'authentication_guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'), 'authentication_guard' => envNonEmpty('AUTHENTICATION_GUARD', 'web'),