Commit f079f2d
committed
subscriber: don't print curly braces on spans with no fields
Previously, when `tracing-subscriber`'s `fmt` module printed span
contexts, curly braces were only added around a span's fields. When we
replaced the previous implementation with the new `fmt::Layer`, this
behavior was lost, and empty curly braces were added to spans without
fields.
This commit fixes this by putting back the `if` conditional that used to
guard the printing of span fields.
Signed-off-by: Eliza Weisman <[email protected]>1 parent 506a482 commit f079f2d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
| |||
0 commit comments