#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',
'tcmb_exchange_url',
'enabled_currencies',
'close_sentry',
],
],
'ads' => [

View File

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

View File

@ -247,4 +247,7 @@ return [
'name' => 'GET Categories',
'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)
{
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);
}