Skip to content

StripeError.type missing from logs #718

Closed
@pushplay

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions