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

Should long exceptions be truncated? #4

Open
alexmojaki opened this issue Jun 30, 2019 · 0 comments
Open

Should long exceptions be truncated? #4

alexmojaki opened this issue Jun 30, 2019 · 0 comments
Labels
discussion Need to hear people's opinions

Comments

@alexmojaki
Copy link
Owner

When I wrote the code for PySnooper to display exception messages, I chose to truncate the message if it was too long. That's still the current behaviour of PySnooper. When writing snoop, I changed my mind, so snoop shows the whole message. I'm not sure which is right.

On the one hand, there may be situations where users want information in the middle of a long message, and if they don't, scrolling past it is not that hard. On the other hand, messages can get arbitrarily long, and this could be really annoying if they are raised many times. When not using snoop, those exceptions may be caught so they're not visible, so turning on snoop and being flooded with long exceptions would be an unpleasant surprise.

What do you think? If I turned on truncation again, what would be a good default limit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Need to hear people's opinions
Projects
None yet
Development

No branches or pull requests

1 participant