mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
make log messages more detailed
This commit is contained in:
parent
91c2c58892
commit
4c71cf1535
1 changed files with 8 additions and 2 deletions
|
@ -253,7 +253,10 @@ class OrderEndpoint {
|
|||
);
|
||||
$this->logger->log(
|
||||
'warning',
|
||||
$error->getMessage(),
|
||||
sprintf(
|
||||
'Failed to create order. PayPal API response: %1$s',
|
||||
$error->getMessage()
|
||||
),
|
||||
array(
|
||||
'args' => $args,
|
||||
'response' => $response,
|
||||
|
@ -398,7 +401,10 @@ class OrderEndpoint {
|
|||
);
|
||||
$this->logger->log(
|
||||
'warning',
|
||||
$error->getMessage(),
|
||||
sprintf(
|
||||
'Failed to authorize order. PayPal API response: %1$s',
|
||||
$error->getMessage()
|
||||
),
|
||||
array(
|
||||
'args' => $args,
|
||||
'response' => $response,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue