Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StripeError.type missing from logs #718

Closed
pushplay opened this issue Oct 25, 2019 · 1 comment
Closed

StripeError.type missing from logs #718

pushplay opened this issue Oct 25, 2019 · 1 comment

Comments

@pushplay
Copy link

Hello,

Logging error objects is a super normal thing to do both in production code and in exploring the API. With recent StripeError changes StripeError.type is defined as a getter which means it's not enumerable and doesn't show up in logging output. That makes the output rather confusing.

There might be a way to make the getter enumerable so it shows up in logging output but just a regular old property on the object is probably simpler.

@paulasjes-stripe
Copy link
Contributor

Looks like this was fixed in #719.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants