Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
linux: Quiet some noisy logs when logging to file (#13260)
Thorsten Ball522692ef50fb
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex ac93ed1a1d8..d82cc49205b 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -705,11 +705,19 @@ fn init_logger() {.open(paths::log_file()){Ok(log_file) => {- let config = ConfigBuilder::new()- .set_time_format_str("%Y-%m-%dT%T%:z")- .set_time_to_local(true)- .build();+ let mut config_builder = ConfigBuilder::new();+ config_builder.set_time_format_str("%Y-%m-%dT%T%:z");+ config_builder.set_time_to_local(true);++ #[cfg(target_os = "linux")]+ {+ config_builder.add_filter_ignore_str("zbus");+ config_builder.add_filter_ignore_str("blade_graphics::hal::resource");+ config_builder.add_filter_ignore_str("naga::back::spv::writer");+ }++ let config = config_builder.build();simplelog::WriteLogger::init(level, config, log_file).expect("could not initialize logger");}