-
Notifications
You must be signed in to change notification settings - Fork 412
Use PrintableString for displaying errors in PeerManager #2342
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
Use PrintableString for displaying errors in PeerManager #2342
Conversation
ba70a73
to
eebdfaf
Compare
eebdfaf
to
86da719
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks, Vlad!
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2342 +/- ##
==========================================
+ Coverage 90.34% 90.40% +0.05%
==========================================
Files 104 104
Lines 53392 53771 +379
Branches 53392 53771 +379
==========================================
+ Hits 48237 48609 +372
- Misses 5155 5162 +7
☔ View full report in Codecov by Sentry. |
We currently just print "with non-ASCII error message" to log when we see non-ASCII chars, but should instead use our fancy PrintableString type to display the untrusted string and ignore control chars.
86da719
to
b5c89cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
We currently just print "with non-ASCII error message" to log when we see non-ASCII chars, but should instead use our fancy UntrustedString wrapper to display the untrusted string and ignore control chars.
Fixes #2291