diff --git a/crates/bevy_log/src/lib.rs b/crates/bevy_log/src/lib.rs index d8e1d6a2a68bc..a1143122e5122 100644 --- a/crates/bevy_log/src/lib.rs +++ b/crates/bevy_log/src/lib.rs @@ -154,9 +154,14 @@ impl Plugin for LogPlugin { let tracy_layer = tracing_tracy::TracyLayer::new(); let fmt_layer = tracing_subscriber::fmt::Layer::default(); + + // bevy_render::renderer logs a `tracy.frame_mark` event every frame + // at Level::INFO. Formatted logs should omit it. #[cfg(feature = "tracing-tracy")] let fmt_layer = fmt_layer.with_filter( - tracing_subscriber::filter::Targets::new().with_target("tracy", Level::ERROR), + tracing_subscriber::filter::Targets::new() + .with_target("bevy_render::renderer", Level::ERROR) + .with_default(Level::TRACE), ); let subscriber = subscriber.with(fmt_layer);