mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Simplify log call
This commit is contained in:
parent
27472d3136
commit
e813816e06
1 changed files with 2 additions and 3 deletions
|
@ -83,7 +83,7 @@ class PayPalBearer implements Bearer {
|
||||||
string $key,
|
string $key,
|
||||||
string $secret,
|
string $secret,
|
||||||
LoggerInterface $logger,
|
LoggerInterface $logger,
|
||||||
Settings $settings
|
ContainerInterface $settings
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$this->cache = $cache;
|
$this->cache = $cache;
|
||||||
|
@ -136,8 +136,7 @@ class PayPalBearer implements Bearer {
|
||||||
$error = new RuntimeException(
|
$error = new RuntimeException(
|
||||||
__( 'Could not create token.', 'woocommerce-paypal-payments' )
|
__( 'Could not create token.', 'woocommerce-paypal-payments' )
|
||||||
);
|
);
|
||||||
$this->logger->log(
|
$this->logger->warning(
|
||||||
'warning',
|
|
||||||
$error->getMessage(),
|
$error->getMessage(),
|
||||||
array(
|
array(
|
||||||
'args' => $args,
|
'args' => $args,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue