From 9b84461a297592d56041d776fbc361b534a3b798 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 1 Jan 2021 00:58:11 +0530 Subject: [PATCH] Add logger messages --- datacenterlight/views.py | 1 + webhook/views.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 3a295089..226985cf 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -1403,6 +1403,7 @@ def do_provisioning(request, stripe_api_cus_id, card_details_response, :return: """ + logger.debug("do_provisioning") user = request.get('user', None) # Create user if the user is not logged in and if he is not already diff --git a/webhook/views.py b/webhook/views.py index 5760b0dd..2d2ce371 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -139,6 +139,8 @@ def handle_webhook(request): invoice_obj.billing_reason == subscription_update""") logger.debug("Start provisioning") try: + logger.debug("Looking for subscription %s" % + invoice_obj.subscription) stripe_subscription_obj = stripe.Subscription.retrieve( invoice_obj.subscription) try: