fix: log not print (#7272)

fix: log missing

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
This commit is contained in:
dennis zhuang
2025-11-21 11:14:45 +08:00
committed by GitHub
parent 01ea7e1468
commit ec8263b464

View File

@@ -132,7 +132,7 @@ impl tracing_subscriber::Layer<DynSubscriber> for TraceLayer {
ctx: tracing_subscriber::layer::Context<'_, DynSubscriber>,
) -> bool {
self.with_layer(|layer| layer.enabled(metadata, ctx))
.unwrap_or(false)
.unwrap_or(true)
}
fn on_new_span(
@@ -172,7 +172,7 @@ impl tracing_subscriber::Layer<DynSubscriber> for TraceLayer {
ctx: tracing_subscriber::layer::Context<'_, DynSubscriber>,
) -> bool {
self.with_layer(|layer| layer.event_enabled(event, ctx))
.unwrap_or(false)
.unwrap_or(true)
}
fn on_event(