mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
commit
44a400643c
@ -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 (config('sentry.enable_sentry_laravel')) {
|
if (config('app.enable_sentry_laravel')) {
|
||||||
app('sentry')->captureException($e);
|
app('sentry')->captureException($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -270,4 +270,6 @@ return [
|
|||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -32,6 +32,4 @@ return [
|
|||||||
'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 1)),
|
'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 1)),
|
||||||
|
|
||||||
'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),
|
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user