mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
#3540 Sentry Enabled/Disabled add Senttings
This commit is contained in:
parent
60d1ba95c1
commit
707faec5be
@ -87,7 +87,11 @@ class ExceptionHandler extends Handler
|
|||||||
public function report(Exception $e)
|
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);
|
app('sentry')->captureException($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user