Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: fix excessive padding on
log
messages
Don't add padding to `log.*` attributes (from `log` events) which are not outputted. ## Problem For example this config which automatically transforms `log`-events to `tracing` ones: ```rust tracing_subscriber::fmt() .with_max_level(tracing::Level::TRACE) .init(); ``` With the following log message: ```rust log::debug!("this is a log line"); ``` Prints something like: "this is a log line \n" ## Solution Do something like in the PrettyVisitor: add a write helper which automatically pads every write.
- Loading branch information