fix(cli): reduce log level for goblin and handlebars (#13953)

This commit is contained in:
Fabian-Lars 2025-08-07 14:40:41 +02:00 committed by GitHub
parent 9300b59f65
commit 390cb9c36a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -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.

View File

@ -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()) {