Add order status to log entry

This commit is contained in:
Emili Castells Guasch 2025-05-23 15:50:04 +02:00
parent 0371f315e4
commit 52a3954ae7
No known key found for this signature in database

View file

@ -231,7 +231,7 @@ class OrderProcessor {
// Do not continue if PayPal order status is completed.
$order = $this->order_endpoint->order( $order->id() );
if ( $order->status()->is( OrderStatus::COMPLETED ) ) {
$this->logger->warning('Could not process PayPal completed order #'. $order->id() );
$this->logger->warning( 'Could not process PayPal completed order #' . $order->id() . ', Status: ' . $order->status()->name() );
return;
}