mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Add logging status to status report
This commit is contained in:
parent
77d3a5c19c
commit
9ba675d1f5
1 changed files with 9 additions and 0 deletions
|
@ -44,6 +44,8 @@ class StatusReportModule implements ModuleInterface {
|
|||
add_action(
|
||||
'woocommerce_system_status_report',
|
||||
function () use ( $c ) {
|
||||
$settings = $c->get( 'wcgateway.settings' );
|
||||
assert( $settings instanceof ContainerInterface );
|
||||
|
||||
/* @var State $state The state. */
|
||||
$state = $c->get( 'onboarding.state' );
|
||||
|
@ -94,6 +96,13 @@ class StatusReportModule implements ModuleInterface {
|
|||
$this->vault_enabled( $bearer )
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => esc_html__( 'Logging enabled', 'woocommerce-paypal-payments' ),
|
||||
'description' => esc_html__( 'Whether logging of plugin events and errors is enabled.', 'woocommerce-paypal-payments' ),
|
||||
'value' => $this->bool_to_text(
|
||||
$settings->has( 'logging_enabled' ) && $settings->get( 'logging_enabled' )
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
echo wp_kses_post(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue