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
DisplayValue
calls record_debug
#306
Comments
I can see how this has the potential to be surprising, but I am not sure if there is really any changes that we can make beyond documentation.
At one point, I had considered calling it @SamScott do you think there are any docs changes that would make this any less surprising? |
Sorry for the slow response. You know, I can't say for certain, but there's a chance that the initial misconception came from this line:
https://docs.rs/tracing/0.1.8/tracing/field/struct.DisplayValue.html I think the "as a string" bit made me assume it would use the stringyness to record it. |
Made an attempt at fixing. |
@samscott89 do you think the docs change in #340 is sufficient to close this ticket, or is there anything else we ought to do? |
It was a super minor issue anyway, so I'm happy with the changes :) |
Bug Report
Version
Platform
Linux
Crates
tracing
Description
In the implementation of
Value
forDisplayValue
, it callsvisitor.record_debug
. This is slightly surprising behaviour (but also pretty understandable when looking into how its implemented).We hit this trying to
visit_str
on something where we did%var
, and expected to catch the field.I don't feel like this is necessarily a bug, but maybe just a little surprising.
The text was updated successfully, but these errors were encountered: