Skip to content

Commit e5c1793

Browse files
committed
Log delete token request exceptions
Rather than silently swallowing them
1 parent e9a785d commit e5c1793

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,9 @@ public function remove_payment_token( $user_id, $token, $environment_id = null )
20472047
}
20482048

20492049
} catch( SV_WC_Payment_Gateway_Exception $e ) {
2050+
if ( $this->debug_log() ) {
2051+
$this->get_plugin()->log( $e->getMessage() . "\n" . $e->getTraceAsString(), $this->get_id() );
2052+
}
20502053
return false;
20512054
}
20522055
}

0 commit comments

Comments
 (0)