From 8fb7fa941ac2225ebee3458402c1fabc8239c035 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 2 Jun 2025 11:59:57 +0300 Subject: [PATCH] Suppress log blade_graphics -related logs by default (#31881) Release Notes: - N/A --- crates/zlog/src/filter.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/zlog/src/filter.rs b/crates/zlog/src/filter.rs index 4683b616cc..25b2ec9de1 100644 --- a/crates/zlog/src/filter.rs +++ b/crates/zlog/src/filter.rs @@ -39,9 +39,9 @@ pub static LEVEL_ENABLED_MAX_CONFIG: AtomicU8 = AtomicU8::new(LEVEL_ENABLED_MAX_ const DEFAULT_FILTERS: &[(&str, log::LevelFilter)] = &[ #[cfg(any(target_os = "linux", target_os = "freebsd"))] ("zbus", log::LevelFilter::Off), - #[cfg(any(target_os = "linux", target_os = "freebsd"))] - ("blade_graphics::hal::resource", log::LevelFilter::Off), - #[cfg(any(target_os = "linux", target_os = "freebsd"))] + #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))] + ("blade_graphics", log::LevelFilter::Off), + #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))] ("naga::back::spv::writer", log::LevelFilter::Off), ]; @@ -166,14 +166,14 @@ fn scope_alloc_from_scope_str(scope_str: &str) -> Option { return Some(scope); } -#[derive(PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq)] pub struct ScopeMap { entries: Vec, modules: Vec<(String, log::LevelFilter)>, root_count: usize, } -#[derive(PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq)] pub struct ScopeMapEntry { scope: String, enabled: Option,