Skip to content

Feature request: Debug printing of Data Classes #2128

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

Closed
2 tasks done
neilramsay opened this issue Apr 16, 2023 · 1 comment · Fixed by #2129
Closed
2 tasks done

Feature request: Debug printing of Data Classes #2128

neilramsay opened this issue Apr 16, 2023 · 1 comment · Fixed by #2129
Assignees
Labels
event_sources Event Source Data Class utility feature-request feature request

Comments

@neilramsay
Copy link
Contributor

Use case

When troubleshooting Lambdas, it is common to log the incoming Lambda Event object at the debug level.
Unfortunately, the Data Classes base class does not implement the __str__ method, so we are presented with only the class name and a memory location.

We should implement a __str__ method on DictWrapper to recursively generate a Dict to be presented as a string.
Some Data Classes will need to blacklist certain properties, as these contain sensitive data, such as credentials.

Solution/User Experience

PR incoming.

Alternative solutions

No response

Acknowledgment

@neilramsay neilramsay added feature-request feature request triage Pending triage from maintainers labels Apr 16, 2023
@heitorlessa heitorlessa removed the triage Pending triage from maintainers label Apr 19, 2023
@leandrodamascena leandrodamascena added the event_sources Event Source Data Class utility label Apr 19, 2023
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event_sources Event Source Data Class utility feature-request feature request
Projects
None yet
3 participants