Skip to content

Commit ef18b54

Browse files
committed
fix: update error logging to use customer ID instead of email in BraintreeBase
1 parent ab47779 commit ef18b54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/braintree-payment/src/providers/payment-braintree/src/core/braintree-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ class BraintreeBase extends AbstractPaymentProvider<BraintreeOptions> {
962962

963963
if (!customerResult.success) {
964964
this.logErrorDetail('createBraintreeCustomer', new Error(JSON.stringify(customerResult.errors)), {
965-
email: customer.email,
965+
customerId: customer.id,
966966
errors: customerResult.errors,
967967
});
968968
throw new MedusaError(

0 commit comments

Comments
 (0)