#3540 Sentry Enabled/Disabled add Senttings

This commit is contained in:
Muammer Top 2021-03-12 12:54:47 +03:00
parent 60d1ba95c1
commit 707faec5be

View File

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