mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
#3540 Sentry Enabled/Disabled add Senttings
This commit is contained in:
parent
919cad01a0
commit
4cea143922
@ -17,7 +17,7 @@ return [
|
|||||||
'hide_price_categories',
|
'hide_price_categories',
|
||||||
'tcmb_exchange_url',
|
'tcmb_exchange_url',
|
||||||
'enabled_currencies',
|
'enabled_currencies',
|
||||||
'close_sentry',
|
'disable_sentry',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'ads' => [
|
'ads' => [
|
||||||
|
|||||||
@ -416,5 +416,5 @@ return [
|
|||||||
'default_value' => false,
|
'default_value' => false,
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'close_sentry' => 'anomaly.field_type.boolean',
|
'disable_sentry' => 'anomaly.field_type.boolean',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -247,7 +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' => [
|
'disable_sentry' => [
|
||||||
'name' => 'Disable Sentry'
|
'name' => 'Disable Sentry'
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|||||||
@ -87,7 +87,7 @@ class ExceptionHandler extends Handler
|
|||||||
public function report(Exception $e)
|
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);
|
app('sentry')->captureException($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user