diff --git a/webhook/views.py b/webhook/views.py index 971d1d98..f768e55d 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -109,12 +109,11 @@ def handle_invoice_webhook(request): send_plain_email_task.delay(email_to_admin_data) elif event.type == "invoice.payment_failed": - logger.error("Invoice payment failed") - admin_msg_sub = "Invoice payment FAILED for user {} and {}".format( stripe_customer.user.email, invoice.lines.data.metadata ) + logger.error(admin_msg_sub) email_to_admin_data = { 'subject': admin_msg_sub, 'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,