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

Flag log messages that have less than useful info in them #3

Open
laurenassour opened this issue Jun 5, 2024 · 2 comments
Open

Flag log messages that have less than useful info in them #3

laurenassour opened this issue Jun 5, 2024 · 2 comments

Comments

@laurenassour
Copy link
Collaborator

laurenassour commented Jun 5, 2024

This is a little vague, but specifically what I'm thinking about is when a log message is trying to provide information by logging an object and said object doesn't have a to string, so we end up with something like We found an issue in <__main__.AProblem object at 0x7fbb3e29ca60>.

@kitrady
Copy link
Contributor

kitrady commented Jun 24, 2024

What is a "to string"?

@benrady
Copy link
Member

benrady commented Jun 25, 2024

I think @laurenassour is referring to the __str__ "dunder" method on Python objects.

"dunder" (short for double underscore) methods are a convention that Python uses for utility methods found on every Python object. Generally, these methods should not be called directly. When you "convert" an object to a string, what it's really doing is calling the __str__ method on an object to get a string representation

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

3 participants