Log error dict
This commit is contained in:
parent
82359064cd
commit
624cc45c12
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ class StripeUtils(object):
|
||||||
stripe_plan_id=stripe_plan_id)
|
stripe_plan_id=stripe_plan_id)
|
||||||
except stripe.error.InvalidRequestError as e:
|
except stripe.error.InvalidRequestError as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
logger.error("error_code = " % e.error.code)
|
logger.error("error_code = " % e.__dict__)
|
||||||
if self.RESOURCE_ALREADY_EXISTS_ERROR_CODE in e.error.code:
|
if self.RESOURCE_ALREADY_EXISTS_ERROR_CODE in e.error.code:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
self.PLAN_EXISTS_ERROR_MSG.format(stripe_plan_id))
|
self.PLAN_EXISTS_ERROR_MSG.format(stripe_plan_id))
|
||||||
|
|
Loading…
Add table
Reference in a new issue