mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#3540 Sentry Enabled/Disabled add Senttings
This commit is contained in:
parent
303200550d
commit
919cad01a0
@ -17,6 +17,7 @@ return [
|
||||
'hide_price_categories',
|
||||
'tcmb_exchange_url',
|
||||
'enabled_currencies',
|
||||
'close_sentry',
|
||||
],
|
||||
],
|
||||
'ads' => [
|
||||
|
||||
@ -415,5 +415,6 @@ return [
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
]
|
||||
],
|
||||
'close_sentry' => 'anomaly.field_type.boolean',
|
||||
];
|
||||
|
||||
@ -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'
|
||||
]
|
||||
];
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user