From ae429632fc0b74ace82245eac4fa09f2ea9f5dcc Mon Sep 17 00:00:00 2001 From: vedatakd Date: Wed, 28 Jul 2021 10:01:47 +0300 Subject: [PATCH] added sentry config --- app/Exceptions/ExceptionHandler.php | 2 +- config/sentry.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/ExceptionHandler.php b/app/Exceptions/ExceptionHandler.php index 83b60ec9c..568b8a798 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 (env('ENABLE_SENTRY_LARAVEL',true)) { + if (config('sentry.enable_sentry_laravel')) { app('sentry')->captureException($e); } } diff --git a/config/sentry.php b/config/sentry.php index bd95322af..52cabdb04 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -33,4 +33,5 @@ return [ 'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'), + 'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true), ];