Impove logging
This commit is contained in:
parent
b567b01362
commit
7949ab274e
1 changed files with 7 additions and 1 deletions
|
@ -445,7 +445,13 @@ class StripeUtils(object):
|
||||||
if tax_id_obj.value == vat_number:
|
if tax_id_obj.value == vat_number:
|
||||||
logger.debug("tax id obj exists already")
|
logger.debug("tax id obj exists already")
|
||||||
return tax_id_obj
|
return tax_id_obj
|
||||||
logger.debug("tax id obj does not exist. Creating a new one")
|
else:
|
||||||
|
logger.debug("{val1} is not equal to {val2}".format(
|
||||||
|
val1=tax_id_obj.value, val2=vat_number
|
||||||
|
))
|
||||||
|
logger.debug("tax id obj does not exist for {val}. Creating a new one".format(
|
||||||
|
val=vat_number
|
||||||
|
))
|
||||||
tax_id_obj = stripe.Customer.create_tax_id(
|
tax_id_obj = stripe.Customer.create_tax_id(
|
||||||
stripe_customer_id,
|
stripe_customer_id,
|
||||||
type=type,
|
type=type,
|
||||||
|
|
Loading…
Reference in a new issue