Skip to content

Feature request: Debug printing of Data Classes #2128

Closed
@neilramsay

Description

@neilramsay

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions