fixed sentry

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

View File

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