Add logger messages

This commit is contained in:
PCoder 2021-01-01 00:58:11 +05:30
parent 04003757dc
commit 9b84461a29
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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: