diff --git a/.changes/cli-goblin-log-level.md b/.changes/cli-goblin-log-level.md new file mode 100644 index 000000000..a7b99dc93 --- /dev/null +++ b/.changes/cli-goblin-log-level.md @@ -0,0 +1,6 @@ +--- +"tauri-cli": "patch:enhance" +"@tauri-apps/cli": "patch:enhance" +--- + +Reduced the log level of the binary patcher crate `goblin` to only show its debug logs in `-vv` and above. diff --git a/crates/tauri-cli/src/lib.rs b/crates/tauri-cli/src/lib.rs index 4e91f12f4..bab4146a9 100644 --- a/crates/tauri-cli/src/lib.rs +++ b/crates/tauri-cli/src/lib.rs @@ -239,6 +239,16 @@ where let init_res = builder .format_indent(Some(12)) .filter(None, verbosity_level(verbosity_number).to_level_filter()) + // golbin spams an insane amount of really technical logs on the debug level so we're reducing one level + .filter( + Some("goblin"), + verbosity_level(verbosity_number.saturating_sub(1)).to_level_filter(), + ) + // handlebars is not that spammy but its debug logs are typically far from being helpful + .filter( + Some("handlebars"), + verbosity_level(verbosity_number.saturating_sub(1)).to_level_filter(), + ) .format(|f, record| { let mut is_command_output = false; if let Some(action) = record.key_values().get("action".into()) {