Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 530136c

Browse files
add logs
1 parent 8ea30ac commit 530136c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

services/billing.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,21 @@ def update_email_address(
615615
billing_details={"email": email_address},
616616
)
617617
log.info(
618-
f"Stripe successfully updated billing email for payment method {default_payment_method}"
618+
f"Stripe successfully updated billing email for payment method",
619+
extra=dict(
620+
payment_method=default_payment_method,
621+
stripe_customer_id=owner.stripe_customer_id,
622+
ownerid=owner.ownerid,
623+
),
619624
)
620625
except Exception as e:
621626
log.error(
622627
"Unable to update billing email for payment method",
623628
extra=dict(
624629
payment_method=default_payment_method,
630+
stripe_customer_id=owner.stripe_customer_id,
625631
error=str(e),
632+
ownerid=owner.ownerid,
626633
),
627634
)
628635

0 commit comments

Comments
 (0)