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

Debug formatting could be improved #1822

Closed
gretchenfrage opened this issue Apr 15, 2024 · 2 comments
Closed

Debug formatting could be improved #1822

gretchenfrage opened this issue Apr 15, 2024 · 2 comments

Comments

@gretchenfrage
Copy link
Collaborator

For example, when trying to print a quinn::Endpoint, when it gets to recv_buf, it just prints a list of many many integers with little discernible meaning. Possibly would be worth looking for a crate that enhances derive debugging with the ability to attribute structs with fields to ignore rather than doing it manually.

@djc
Copy link
Member

djc commented Apr 15, 2024

I don't think we want to drag in an additional dependency for this. But having a manual Debug impl that's more discerning than whatever we've got now would probably be helpful!

@gretchenfrage
Copy link
Collaborator Author

The thing about recv_buf specifically was fixed in #2081. Beyond that, I figure this issue is probably too broad to ever say "we're done", so I'm going to close it, and just say, we should fix debug impls when we notice that one is bad.

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

2 participants