From 58b8f554a161b1b00930266fe9a02f2ef11cce89 Mon Sep 17 00:00:00 2001 From: Satellile <118775491+Satellile@users.noreply.github.com> Date: Sat, 29 Mar 2025 13:07:21 -0400 Subject: [PATCH] Fix LogDiagnosticsPlugin log target typo (#18534) # Objective For the LogDiagnosticsPlugin, the log target is "bevy diagnostic" with a space; I think it may (?) be a typo intended to be "bevy_diagnostic" with an underline. I couldn't get filtering INFO level logs with work with this plugin, changing this seems to produce the expected behavior. --- crates/bevy_diagnostic/src/log_diagnostics_plugin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_diagnostic/src/log_diagnostics_plugin.rs b/crates/bevy_diagnostic/src/log_diagnostics_plugin.rs index 6a8c761c0b..1246b03f81 100644 --- a/crates/bevy_diagnostic/src/log_diagnostics_plugin.rs +++ b/crates/bevy_diagnostic/src/log_diagnostics_plugin.rs @@ -92,7 +92,7 @@ impl LogDiagnosticsPlugin { }; info!( - target: "bevy diagnostic", + target: "bevy_diagnostic", // Suffix is only used for 's' or 'ms' currently, // so we reserve two columns for it; however, // Do not reserve columns for the suffix in the average @@ -103,7 +103,7 @@ impl LogDiagnosticsPlugin { ); } else { info!( - target: "bevy diagnostic", + target: "bevy_diagnostic", "{path:.6}{suffix:}", path = diagnostic.path(), suffix = diagnostic.suffix,