mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
make logging optional
This commit is contained in:
parent
6c97b6332b
commit
b032a8ea14
2 changed files with 31 additions and 0 deletions
|
@ -17,6 +17,9 @@ use Inpsyde\PayPalCommerce\WcGateway\Processor\OrderProcessor;
|
|||
use Inpsyde\PayPalCommerce\WcGateway\Settings\Settings;
|
||||
use Inpsyde\PayPalCommerce\WcGateway\Settings\SettingsListener;
|
||||
use Inpsyde\PayPalCommerce\WcGateway\Settings\SettingsRenderer;
|
||||
use Inpsyde\Woocommerce\Logging\Logger\NullLogger;
|
||||
use Inpsyde\Woocommerce\Logging\Logger\WooCommerceLogger;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use WpOop\TransientCache\CachePoolFactory;
|
||||
|
||||
return [
|
||||
|
@ -411,6 +414,19 @@ return [
|
|||
State::STATE_ONBOARDED,
|
||||
],
|
||||
],
|
||||
'logging_enabled' => [
|
||||
'title' => __('Logging', 'woocommerce-paypal-commerce-gateway'),
|
||||
'type' => 'checkbox',
|
||||
'desc_tip' => true,
|
||||
'label' => __('Enable logging', 'woocommerce-paypal-commerce-gateway'),
|
||||
'description' => __('Enable logging of unexpected behavior. This can also log private data and should only be enabled in a development or stage environment.', 'woocommerce-paypal-commerce-gateway'),
|
||||
'default' => false,
|
||||
'screens' => [
|
||||
State::STATE_START,
|
||||
State::STATE_PROGRESSIVE,
|
||||
State::STATE_ONBOARDED,
|
||||
],
|
||||
],
|
||||
];
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue