Skip to content

Commit

Permalink
subscriber: add space after level with pretty formatter (#1498)
Browse files Browse the repository at this point in the history
## Motivation

On v0.1.x,  `tracing_subscriber::fmt`'s `Pretty` formatter is missing
a space after the event's level, when printing levels is enabled.

## Solution

This branch fixes that.

Fixes #1488

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw authored Aug 7, 2021
1 parent aeae4fa commit 478156a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-subscriber/src/fmt/format/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ where
};

if self.display_level {
write!(writer, "{}", super::FmtLevel::new(meta.level(), self.ansi))?;
write!(writer, "{} ", super::FmtLevel::new(meta.level(), self.ansi))?;
}

if self.display_target {
Expand Down

0 comments on commit 478156a

Please sign in to comment.