fixed sentry

This commit is contained in:
vedatakd 2021-03-31 12:23:14 +03:00
parent 587e07a89f
commit 4c42b308b5

View File

@ -87,13 +87,13 @@ class ExceptionHandler extends Handler
public function report(Exception $e) public function report(Exception $e)
{ {
if (!setting_value('visiosoft.module.advs::disable_sentry') if (app()->bound('sentry')
&& app()->bound('sentry')
&& $this->shouldReport($e) && $this->shouldReport($e)
&& env('SENTRY_LARAVEL_DSN')) { && env('SENTRY_LARAVEL_DSN')) {
if (!setting_value('visiosoft.module.advs::disable_sentry')) {
app('sentry')->captureException($e); app('sentry')->captureException($e);
} }
}
parent::report($e); parent::report($e);
} }