From 2975adc0e556ccd77d58c215f5ed0055c9ae1f28 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 19 Aug 2020 14:48:37 +1000 Subject: [PATCH] Reconfigure the way we pass Sentry DSN --- config/ninja.php | 1 + config/sentry.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/ninja.php b/config/ninja.php index 358d25949ab8..47c255d61031 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -30,6 +30,7 @@ return [ 'phantomjs_key' => env('PHANTOMJS_KEY', false), 'phantomjs_secret' => env('PHANTOMJS_SECRET', false), + 'sentry_dsn' => env('SENTRY_LARAVEL_DSN', 'https://b36c3ae4f26b45689bc3d4e3774fb303@sentry.invoicing.co/4'), 'environment' => env('NINJA_ENVIRONMENT', 'selfhost'), // 'hosted', 'development', 'selfhost', 'reseller' // Settings used by invoiceninja.com diff --git a/config/sentry.php b/config/sentry.php index e428cbbce513..2669e086fa37 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -2,8 +2,8 @@ return [ - 'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')), - + //'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')), + 'dsn' => config('ninja.sentry_dsn'), // capture release as git sha // 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),