#3540 Sentry Enabled/Disabled add Senttings

This commit is contained in:
Muammer Top 2021-03-12 12:12:02 +03:00
parent 303200550d
commit 919cad01a0
4 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,7 @@ return [
'hide_price_categories', 'hide_price_categories',
'tcmb_exchange_url', 'tcmb_exchange_url',
'enabled_currencies', 'enabled_currencies',
'close_sentry',
], ],
], ],
'ads' => [ 'ads' => [

View File

@ -415,5 +415,6 @@ return [
'config' => [ 'config' => [
'default_value' => false, 'default_value' => false,
] ]
] ],
'close_sentry' => 'anomaly.field_type.boolean',
]; ];

View File

@ -247,4 +247,7 @@ return [
'name' => 'GET Categories', 'name' => 'GET Categories',
'instructions' => 'It represents the categories in which the GET property will be valid.' 'instructions' => 'It represents the categories in which the GET property will be valid.'
], ],
'close_sentry' => [
'name' => 'Disable Sentry'
]
]; ];

View File

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