Skip to content

Commit ed8fd41

Browse files
chore(cli): lesser verbose ureq_proto log (#15552)
* chore(cli): lesser verbose `ureq_proto` log * both `-vv`
1 parent 50b0237 commit ed8fd41

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": "patch:bug"
3+
"@tauri-apps/cli": "patch:bug"
4+
---
5+
6+
Make `ureq_proto` show trace level logs only on `-vvv` instead of `-vv`

crates/tauri-cli/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ where
243243
Some("handlebars"),
244244
verbosity_level(verbosity_number.saturating_sub(1)).to_level_filter(),
245245
)
246+
// `ureq_proto` logs out every network packets at trace level
247+
.filter(
248+
Some("ureq_proto"),
249+
verbosity_level(verbosity_number.saturating_sub(1)).to_level_filter(),
250+
)
246251
.format(|f, record| {
247252
let mut is_command_output = false;
248253
if let Some(action) = record.key_values().get("action".into()) {

packages/cli/__tests__/template.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('[CLI] @tauri-apps/cli template', () => {
4444

4545
await cli.run([
4646
'init',
47-
'-vvv',
47+
'-vv',
4848
'--directory',
4949
process.cwd(),
5050
'--force',
@@ -71,7 +71,7 @@ describe('[CLI] @tauri-apps/cli template', () => {
7171
const config = readFileSync(configPath).toString()
7272
writeFileSync(configPath, config.replace('com.tauri.dev', 'com.tauri.test'))
7373

74-
await cli.run(['build', '-vvv'])
74+
await cli.run(['build', '-vv'])
7575
process.chdir(cwd)
7676
})
7777
})

0 commit comments

Comments
 (0)