added sentry config

This commit is contained in:
vedatakd 2021-07-28 10:01:47 +03:00
parent b120d2d547
commit ae429632fc
2 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class ExceptionHandler extends Handler
if (app()->bound('sentry') if (app()->bound('sentry')
&& $this->shouldReport($e) && $this->shouldReport($e)
&& env('SENTRY_LARAVEL_DSN')) { && env('SENTRY_LARAVEL_DSN')) {
if (env('ENABLE_SENTRY_LARAVEL',true)) { if (config('sentry.enable_sentry_laravel')) {
app('sentry')->captureException($e); app('sentry')->captureException($e);
} }
} }

View File

@ -33,4 +33,5 @@ return [
'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'), 'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'),
'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true),
]; ];