From 64dc5083771499bf4ce6db9964ebfdaace0d06ae Mon Sep 17 00:00:00 2001 From: Michael-F-Bryan Date: Thu, 4 Jan 2024 14:38:23 +0800 Subject: [PATCH] fix: Don't log the `FmtSpan::ENTER` event because it generates unnecessary logs --- lib/cli/src/logging.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/src/logging.rs b/lib/cli/src/logging.rs index bdfef2ec957..248ef43d30f 100644 --- a/lib/cli/src/logging.rs +++ b/lib/cli/src/logging.rs @@ -31,7 +31,7 @@ impl Output { pub fn initialize_logging(&self) { let fmt_layer = fmt::layer() .with_target(true) - .with_span_events(fmt::format::FmtSpan::CLOSE | fmt::format::FmtSpan::ENTER) + .with_span_events(fmt::format::FmtSpan::CLOSE) .with_ansi(self.should_emit_colors()) .with_thread_ids(true) .with_writer(std::io::stderr)