kv::value::Value constructed from String uses Debug output for Display #395
Labels
No labels
bug
duplicate
easy
enhancement
help wanted
invalid
question
rfc
structured-logging
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-rust-lang/log#395
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@isgj reported an issue in Tide https://github.com/http-rs/tide/pull/495#discussion_r426254201 that led us to file in issue in Femme https://github.com/lrlna/femme/issues/12 about output that was being printed with extra quotes:
The printing logic in
femmelooks like this:It turns out that the problem stems from the
Displaypath using theDebuglogic: https://docs.rs/log/0.4.8/src/log/kv/value/internal.rs.html#111-117. Currently in master this code seems refactored, but still inherently the same: https://github.com/rust-lang/log/blob/master/src/kv/value/internal/mod.rs#L49-L51.We should probably introduce a new
Displaypath for values so that they can correctly be displayed. Thanks!cc/ @KodrAus
Ah yes, that’s a bug we should fix up!
I’m spending a bit of time on the
kvside oflognow so will dig into it unless somebody else beats me to it.Somewhat related, we should make sure we respect formatting flags too.
Can you release a new version for this?