mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-12 16:26:07 -06:00
remove config
This commit is contained in:
parent
8f15f20ab6
commit
a33b5713fc
@ -72,13 +72,12 @@ class ExceptionHandler extends Handler
|
||||
|
||||
public function report(Throwable $e)
|
||||
{
|
||||
if (app()->bound('sentry')
|
||||
&& $this->shouldReport($e)
|
||||
&& env('SENTRY_LARAVEL_DSN')) {
|
||||
if (config('app.enable_sentry_laravel')) {
|
||||
if (app()->bound('sentry') &&
|
||||
$this->shouldReport($e) &&
|
||||
env('SENTRY_LARAVEL_DSN') &&
|
||||
!empty(env('SENTRY_LARAVEL_DSN'))) {
|
||||
app('sentry')->captureException($e);
|
||||
}
|
||||
}
|
||||
|
||||
if ($e instanceof Swift_TransportException) {
|
||||
die(trans('visiosoft.theme.base::message.error_mail'));
|
||||
|
||||
@ -269,7 +269,4 @@ return [
|
||||
|
||||
|
||||
],
|
||||
|
||||
'enable_sentry_laravel' => env('ENABLE_SENTRY_LARAVEL',true),
|
||||
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user