From 8827bd15bac9b6c9d282004ea8501d3675314791 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 31 Dec 2020 16:47:45 +0530 Subject: [PATCH] More loggers --- webhook/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webhook/views.py b/webhook/views.py index bdcf1654..8dc1d909 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -225,8 +225,9 @@ def handle_webhook(request): payment_intent_obj = event.data.object logger.debug("Webhook Event: payment_intent.succeeded") logger.debug("payment_intent_obj %s " % str(payment_intent_obj)) - try: + logger.debug("Looking for IncompletePaymentIntents %s " % + payment_intent_obj.id) incomplete_pm = IncompletePaymentIntents.objects.get( payment_intent_id=payment_intent_obj.id) request = "" @@ -282,6 +283,7 @@ def handle_webhook(request): except (IncompletePaymentIntents.DoesNotExist, IncompletePaymentIntents.MultipleObjectsReturned) as ex: logger.error(str(ex)) + logger.debug(str(ex)) email_data = { 'subject': "IncompletePaymentIntents error", 'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,