Skip to content

Commit 0249bd6

Browse files
committed
Add is_guest_checkout to the log context
1 parent adfbda3 commit 0249bd6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Checkout/Model/GuestPaymentInformationManagement.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ public function savePaymentInformationAndPlaceOrder(
145145
'Placing an Order failed (reason: '. $e->getMessage() .')',
146146
[
147147
'quote_id' => $cartId,
148-
'exception' => (string)$e
148+
'exception' => (string)$e,
149+
'is_guest_checkout' => true
149150
]
150151
);
151152
throw new CouldNotSaveException(

app/code/Magento/Checkout/Model/PaymentInformationManagement.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ public function savePaymentInformationAndPlaceOrder(
155155
'Placing an Order failed (reason: '. $e->getMessage() .')',
156156
[
157157
'quote_id' => $cartId,
158-
'exception' => (string)$e
158+
'exception' => (string)$e,
159+
'is_guest_checkout' => false
159160
]
160161
);
161162
throw new CouldNotSaveException(

0 commit comments

Comments
 (0)