Skip to content

Commit 5754991

Browse files
fix(progress): Replace eprintln! with log::info! in CI fallback
When progress bars are disabled (e.g. in CI where stderr is not a terminal), `finish_with_duration` printed its completion message via `eprintln!`. Some CI configurations treat any stderr output as an error, causing false positives. Use `log::info!` instead, which is suppressed at the default `Warn` log level. Users who want to see these messages can use `--log-level info`. The `> ` prefix is dropped since the log framework adds its own formatting. Closes #3016 Closes [CLI-244](https://linear.app/getsentry/issue/CLI-244/avoid-eprintln-for-progress-bar-messages-in-ci)
1 parent 44c3a91 commit 5754991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl ProgressBar {
7171
inner.finish_with_message(&msg);
7272
logging::set_progress_bar(None);
7373
} else {
74-
eprintln!("> {msg}");
74+
log::info!("{msg}");
7575
}
7676
}
7777

0 commit comments

Comments
 (0)