From dfab8db9524b628b176baa863255b0d4be4b67da Mon Sep 17 00:00:00 2001 From: Jaap Frolich Date: Sun, 19 Apr 2026 14:14:51 +0200 Subject: [PATCH] Rewatch: don't suppress progress messages under -v/-vv 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'. --- rewatch/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rewatch/src/main.rs b/rewatch/src/main.rs index 9d3a235435..8fe9c8d78c 100644 --- a/rewatch/src/main.rs +++ b/rewatch/src/main.rs @@ -36,9 +36,9 @@ fn main() -> Result<()> { let is_tty: bool = Term::stdout().is_term() && Term::stderr().is_term(); let plain_output = !is_tty; - // The 'normal run' mode will show the 'pretty' formatted progress. But if we turn off the log - // level, we should never show that. - let show_progress = log_level_filter == LevelFilter::Info; + // Show progress messages (e.g. "Finished compilation") as long as logging is at Info level + // or more verbose. This way `-v` and `-vv` add debug output without suppressing progress. + let show_progress = log_level_filter >= LevelFilter::Info; match cli.command { cli::Command::CompilerArgs { path } => {