Skip to content

Commit

Permalink
Remove current span
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Feb 2, 2022
1 parent 1d7344f commit d7d3e35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/prelude/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ pub fn init_tracing(json: bool) {
let defaults = tracing_subscriber::registry().with(filter_layer);
let fmt_layer = tracing_subscriber::fmt::layer();
if json {
defaults.with(fmt_layer.json()).init();
defaults
.with(fmt_layer.json().with_current_span(false))
.init();
} else {
defaults.with(fmt_layer).init();
}
Expand Down

0 comments on commit d7d3e35

Please sign in to comment.