Skip to content

Commit 8436751

Browse files
authored
Rewatch: don't suppress progress messages under -v/-vv (#8371)
Change show_progress from `log_level_filter == LevelFilter::Info` to `>= LevelFilter::Info` so that verbose flags (-v, -vv) add debug output without silencing progress messages like 'Finished compilation'.
1 parent 33bf3c2 commit 8436751

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rewatch/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ fn main() -> Result<()> {
3636
let is_tty: bool = Term::stdout().is_term() && Term::stderr().is_term();
3737
let plain_output = !is_tty;
3838

39-
// The 'normal run' mode will show the 'pretty' formatted progress. But if we turn off the log
40-
// level, we should never show that.
41-
let show_progress = log_level_filter == LevelFilter::Info;
39+
// Show progress messages (e.g. "Finished compilation") as long as logging is at Info level
40+
// or more verbose. This way `-v` and `-vv` add debug output without suppressing progress.
41+
let show_progress = log_level_filter >= LevelFilter::Info;
4242

4343
match cli.command {
4444
cli::Command::CompilerArgs { path } => {

0 commit comments

Comments
 (0)