diff --git a/crates/gcfeeder/Cargo.toml b/crates/gcfeeder/Cargo.toml index 9fdafe0..cf8ba9d 100644 --- a/crates/gcfeeder/Cargo.toml +++ b/crates/gcfeeder/Cargo.toml @@ -63,3 +63,7 @@ embed-resource = "1.8.0" version = "0.24.5" default-features = false features = ["png", "ico"] + +[features] +default = ["no-log-spam"] +no-log-spam = [] diff --git a/crates/gcfeeder/src/gui/log.rs b/crates/gcfeeder/src/gui/log.rs index 75c0d0a..0810e8f 100644 --- a/crates/gcfeeder/src/gui/log.rs +++ b/crates/gcfeeder/src/gui/log.rs @@ -39,6 +39,11 @@ impl log::Log for Logger { record.module_path().unwrap_or_default() }; + #[cfg(feature = "no-log-spam")] + if target.starts_with("wgpu") || target.starts_with("naga") { + return; + } + let _ = self.sender.send(Message { timestamp, level: record.level(),