mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
added sentry config
This commit is contained in:
parent
b120d2d547
commit
ae429632fc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,4 +33,5 @@ return [
|
||||
|
||||
'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