#3540 Sentry Enabled/Disabled add Senttings

This commit is contained in:
Muammer Top 2021-03-12 12:13:24 +03:00
parent 919cad01a0
commit 4cea143922
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -416,5 +416,5 @@ return [
'default_value' => false,
]
],
'close_sentry' => 'anomaly.field_type.boolean',
'disable_sentry' => 'anomaly.field_type.boolean',
];

View File

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

View File

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