Suppress log blade_graphics -related logs by default (#31881)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-06-02 11:59:57 +03:00 committed by GitHub
parent 22d75b798e
commit 8fb7fa941a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,9 +39,9 @@ pub static LEVEL_ENABLED_MAX_CONFIG: AtomicU8 = AtomicU8::new(LEVEL_ENABLED_MAX_
const DEFAULT_FILTERS: &[(&str, log::LevelFilter)] = &[ const DEFAULT_FILTERS: &[(&str, log::LevelFilter)] = &[
#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[cfg(any(target_os = "linux", target_os = "freebsd"))]
("zbus", log::LevelFilter::Off), ("zbus", log::LevelFilter::Off),
#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))]
("blade_graphics::hal::resource", log::LevelFilter::Off), ("blade_graphics", log::LevelFilter::Off),
#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))]
("naga::back::spv::writer", log::LevelFilter::Off), ("naga::back::spv::writer", log::LevelFilter::Off),
]; ];
@ -166,14 +166,14 @@ fn scope_alloc_from_scope_str(scope_str: &str) -> Option<ScopeAlloc> {
return Some(scope); return Some(scope);
} }
#[derive(PartialEq, Eq)] #[derive(Debug, PartialEq, Eq)]
pub struct ScopeMap { pub struct ScopeMap {
entries: Vec<ScopeMapEntry>, entries: Vec<ScopeMapEntry>,
modules: Vec<(String, log::LevelFilter)>, modules: Vec<(String, log::LevelFilter)>,
root_count: usize, root_count: usize,
} }
#[derive(PartialEq, Eq)] #[derive(Debug, PartialEq, Eq)]
pub struct ScopeMapEntry { pub struct ScopeMapEntry {
scope: String, scope: String,
enabled: Option<log::LevelFilter>, enabled: Option<log::LevelFilter>,