Merge pull request #1124 from openclassify/vedat

fixed
This commit is contained in:
Muammer Top 2021-07-28 10:13:46 +03:00 committed by GitHub
commit 44a400643c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -270,4 +270,6 @@ return [
],
'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true),
];

View File

@ -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),
];