Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Suppress log blade_graphics -related logs by default (#31881)
Kirill Bulatov8fb7fa941ac2
diff --git a/crates/zlog/src/filter.rs b/crates/zlog/src/filter.rsindex 4683b616cca..25b2ec9de12 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<ScopeAlloc> {return Some(scope);}-#[derive(PartialEq, Eq)]+#[derive(Debug, PartialEq, Eq)]pub struct ScopeMap {entries: Vec<ScopeMapEntry>,modules: Vec<(String, log::LevelFilter)>,root_count: usize,}-#[derive(PartialEq, Eq)]+#[derive(Debug, PartialEq, Eq)]pub struct ScopeMapEntry {scope: String,enabled: Option<log::LevelFilter>,