Skip to content

Commit

Permalink
fix(FmtSubscriber): add space between multiple values for same key in…
Browse files Browse the repository at this point in the history
… a span tokio-rs#627

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
  • Loading branch information
bnjjj committed Apr 2, 2020
1 parent 2f14d19 commit 62d9796
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracing-subscriber/src/fmt/fmt_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ where
if let Some(FormattedFields { ref mut fields, .. }) =
extensions.get_mut::<FormattedFields<N>>()
{
if !values.is_empty() {
fields.push(' ');
}
let _ = self.fmt_fields.format_fields(fields, values);
} else {
let mut buf = String::new();
Expand Down

0 comments on commit 62d9796

Please sign in to comment.