Add some logger messages
This commit is contained in:
parent
377d12b5a5
commit
c0aeac4dc7
1 changed files with 4 additions and 0 deletions
|
@ -1205,6 +1205,7 @@ def do_provisioning(request, user, stripe_api_cus_id, card_details_response,
|
||||||
order.set_subscription_id(
|
order.set_subscription_id(
|
||||||
stripe_subscription_obj.id, card_details_dict
|
stripe_subscription_obj.id, card_details_dict
|
||||||
)
|
)
|
||||||
|
logger.debug("recurring case, set order subscription id done")
|
||||||
else:
|
else:
|
||||||
logger.debug("one time charge case")
|
logger.debug("one time charge case")
|
||||||
# Associate the given stripe charge id with the order
|
# Associate the given stripe charge id with the order
|
||||||
|
@ -1215,6 +1216,7 @@ def do_provisioning(request, user, stripe_api_cus_id, card_details_response,
|
||||||
order.generic_payment_description = gp_details["description"]
|
order.generic_payment_description = gp_details["description"]
|
||||||
order.generic_product_id = gp_details["product_id"]
|
order.generic_product_id = gp_details["product_id"]
|
||||||
order.save()
|
order.save()
|
||||||
|
logger.debug("Order saved")
|
||||||
# send emails
|
# send emails
|
||||||
context = {
|
context = {
|
||||||
'name': user.get('name'),
|
'name': user.get('name'),
|
||||||
|
@ -1262,10 +1264,12 @@ def do_provisioning(request, user, stripe_api_cus_id, card_details_response,
|
||||||
}
|
}
|
||||||
send_plain_email_task.delay(email_data)
|
send_plain_email_task.delay(email_data)
|
||||||
redirect_url = reverse('datacenterlight:index')
|
redirect_url = reverse('datacenterlight:index')
|
||||||
|
logger.debug("Sent user/admin emails")
|
||||||
if real_request:
|
if real_request:
|
||||||
clear_all_session_vars(real_request)
|
clear_all_session_vars(real_request)
|
||||||
if real_request.user.is_authenticated():
|
if real_request.user.is_authenticated():
|
||||||
redirect_url = reverse('hosting:invoices')
|
redirect_url = reverse('hosting:invoices')
|
||||||
|
logger.debug("redirect_url = %s " % redirect_url)
|
||||||
response = {
|
response = {
|
||||||
'status': True,
|
'status': True,
|
||||||
'redirect': redirect_url,
|
'redirect': redirect_url,
|
||||||
|
|
Loading…
Reference in a new issue