Skip to content

Commit f7a6686

Browse files
authored
Remove chatty logs from default filter (#21548)
# Objective - Fixes #16277 - The maintainers have already removed some annoying logs like the probe one, but the format crates are still incredibly chatty - Fixes #14904 - That's a completely benign warning that is annoying for Linux users ## Solution - Improve the default filter ## Testing - Tested in a standalone project (Foxtrot)
1 parent af1ff01 commit f7a6686

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

crates/bevy_log/src/lib.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,18 @@ type PreFmtSubscriber =
275275
pub type BoxedFmtLayer = Box<dyn Layer<PreFmtSubscriber> + Send + Sync + 'static>;
276276

277277
/// The default [`LogPlugin`] [`EnvFilter`].
278-
pub const DEFAULT_FILTER: &str = "wgpu=error,naga=warn";
278+
pub const DEFAULT_FILTER: &str = concat!(
279+
"wgpu=error,",
280+
"naga=warn,",
281+
"symphonia_bundle_mp3::demuxer=warn,",
282+
"symphonia_format_caf::demuxer=warn,",
283+
"symphonia_format_isompf4::demuxer=warn,",
284+
"symphonia_format_mkv::demuxer=warn,",
285+
"symphonia_format_ogg::demuxer=warn,",
286+
"symphonia_format_riff::demuxer=warn,",
287+
"symphonia_format_wav::demuxer=warn,",
288+
"calloop::loop_logic=error,",
289+
);
279290

280291
impl Default for LogPlugin {
281292
fn default() -> Self {

typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ reparametrization = "reparametrization" # Mathematical term in curve context (re
1414
reparametrize = "reparametrize"
1515
reparametrized = "reparametrized"
1616
mis = "mis" # mis - multiple importance sampling
17+
caf = "caf" # CAF - Core Audio Format
1718

1819
# Match a Whole Word - Case Sensitive
1920
[default.extend-identifiers]

0 commit comments

Comments
 (0)