Skip to content

Commit eb63b30

Browse files
jfrolichcknitt
authored andcommitted
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 558f71c commit eb63b30

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
@@ -45,9 +45,9 @@ fn main() -> Result<()> {
4545
let is_tty: bool = Term::stdout().is_term() && Term::stderr().is_term();
4646
let plain_output = !is_tty;
4747

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

5252
match command {
5353
cli::Command::CompilerArgs { path } => {

0 commit comments

Comments
 (0)