mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #991 from openclassify/muammertop
#3540 Sentry Enabled/Disabled add Settings
This commit is contained in:
commit
1ccc3d3833
@ -17,6 +17,7 @@ return [
|
||||
'hide_price_categories',
|
||||
'tcmb_exchange_url',
|
||||
'enabled_currencies',
|
||||
'disable_sentry',
|
||||
],
|
||||
],
|
||||
'ads' => [
|
||||
|
||||
@ -395,31 +395,32 @@ return [
|
||||
},
|
||||
],
|
||||
],
|
||||
'favicon' => [
|
||||
'type' => 'anomaly.field_type.file',
|
||||
],
|
||||
'ads_date_hidden' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'hide_listing_header' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'hide_filter_section' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'hide_seller_info' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
]
|
||||
'favicon' => [
|
||||
'type' => 'anomaly.field_type.file',
|
||||
],
|
||||
'ads_date_hidden' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'hide_listing_header' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'hide_filter_section' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'hide_seller_info' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'disable_sentry' => 'anomaly.field_type.boolean',
|
||||
];
|
||||
|
||||
@ -247,6 +247,9 @@ return [
|
||||
'name' => 'GET Categories',
|
||||
'instructions' => 'It represents the categories in which the GET property will be valid.'
|
||||
],
|
||||
'disable_sentry' => [
|
||||
'name' => 'Disable Sentry'
|
||||
],
|
||||
'watermark' => [
|
||||
'name' => 'Watermark',
|
||||
'instructions' => 'Is watermark active?'
|
||||
|
||||
@ -87,7 +87,11 @@ class ExceptionHandler extends Handler
|
||||
public function report(Exception $e)
|
||||
{
|
||||
|
||||
if (app()->bound('sentry') && $this->shouldReport($e)) {
|
||||
if (!setting_value('visiosoft.module.advs::disable_sentry')
|
||||
&& app()->bound('sentry')
|
||||
&& $this->shouldReport($e)
|
||||
&& env('SENTRY_LARAVEL_DSN')) {
|
||||
|
||||
app('sentry')->captureException($e);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user