Skip to content

Commit 390cb9c

Browse files
authored
fix(cli): reduce log level for goblin and handlebars (#13953)
1 parent 9300b59 commit 390cb9c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.changes/cli-goblin-log-level.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": "patch:enhance"
3+
"@tauri-apps/cli": "patch:enhance"
4+
---
5+
6+
Reduced the log level of the binary patcher crate `goblin` to only show its debug logs in `-vv` and above.

crates/tauri-cli/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@ where
239239
let init_res = builder
240240
.format_indent(Some(12))
241241
.filter(None, verbosity_level(verbosity_number).to_level_filter())
242+
// golbin spams an insane amount of really technical logs on the debug level so we're reducing one level
243+
.filter(
244+
Some("goblin"),
245+
verbosity_level(verbosity_number.saturating_sub(1)).to_level_filter(),
246+
)
247+
// handlebars is not that spammy but its debug logs are typically far from being helpful
248+
.filter(
249+
Some("handlebars"),
250+
verbosity_level(verbosity_number.saturating_sub(1)).to_level_filter(),
251+
)
242252
.format(|f, record| {
243253
let mut is_command_output = false;
244254
if let Some(action) = record.key_values().get("action".into()) {

0 commit comments

Comments
 (0)