From 73ecbf856971ff04c088f8138818a3be4b81a8a0 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Wed, 28 Jul 2021 10:11:56 +0300 Subject: [PATCH] fixed --- app/Exceptions/ExceptionHandler.php | 2 +- config/app.php | 2 ++ config/sentry.php | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Exceptions/ExceptionHandler.php b/app/Exceptions/ExceptionHandler.php index 568b8a798..3e939632e 100644 --- a/app/Exceptions/ExceptionHandler.php +++ b/app/Exceptions/ExceptionHandler.php @@ -75,7 +75,7 @@ class ExceptionHandler extends Handler if (app()->bound('sentry') && $this->shouldReport($e) && env('SENTRY_LARAVEL_DSN')) { - if (config('sentry.enable_sentry_laravel')) { + if (config('app.enable_sentry_laravel')) { app('sentry')->captureException($e); } } diff --git a/config/app.php b/config/app.php index 18cb9f7ad..40b4bf058 100644 --- a/config/app.php +++ b/config/app.php @@ -270,4 +270,6 @@ return [ ], + 'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true), + ]; diff --git a/config/sentry.php b/config/sentry.php index 52cabdb04..5cad88d2d 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -32,6 +32,4 @@ return [ 'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 1)), 'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'), - - 'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true), ];