Log error details via Display instead of Debug#249
Merged
dhardy merged 3 commits intorust-random:masterfrom Feb 17, 2018
Merged
Log error details via Display instead of Debug#249dhardy merged 3 commits intorust-random:masterfrom
dhardy merged 3 commits intorust-random:masterfrom
Conversation
Contributor
|
Ah, good use of I like "permanent failure or unavailable" more then "permanent failure", but shorter is a little neater here. Example result: |
Member
Author
|
Reminder to self: |
Member
Author
|
Specifically, check:
|
Member
Author
|
Updated; this affects EntropyRng logging significantly |
pitdicker
approved these changes
Feb 6, 2018
Contributor
pitdicker
left a comment
There was a problem hiding this comment.
Look good to me! Have you made all the changes you wanted?
Member
Author
|
For now, though there might be some more tweaks after #252 merges. |
Merged
pitdicker
pushed a commit
that referenced
this pull request
Apr 4, 2018
Log error details via Display instead of Debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compare current
Debugoutput:verses prettier
Displayoutput:I checked implementations of
Displayfor error types in the main Rust repo and all of them covered all their state I think; but none had a situation like this with optional cause. So thisDisplayimplementation seems reasonable to me.(Note that the condition is a bit funky due to
no_stdnot having a cause at all.)