mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
fixed sentry
This commit is contained in:
parent
587e07a89f
commit
4c42b308b5
@ -87,12 +87,12 @@ 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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user