Skip to content

Commit 58b8f55

Browse files
authored
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.
1 parent 3945a6d commit 58b8f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_diagnostic/src/log_diagnostics_plugin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl LogDiagnosticsPlugin {
9292
};
9393

9494
info!(
95-
target: "bevy diagnostic",
95+
target: "bevy_diagnostic",
9696
// Suffix is only used for 's' or 'ms' currently,
9797
// so we reserve two columns for it; however,
9898
// Do not reserve columns for the suffix in the average
@@ -103,7 +103,7 @@ impl LogDiagnosticsPlugin {
103103
);
104104
} else {
105105
info!(
106-
target: "bevy diagnostic",
106+
target: "bevy_diagnostic",
107107
"{path:<path_width$}: {value:>.6}{suffix:}",
108108
path = diagnostic.path(),
109109
suffix = diagnostic.suffix,

0 commit comments

Comments
 (0)