Skip to content

Commit

Permalink
feat(hydro_deploy): use regular println when no tasks are active (#1577)
Browse files Browse the repository at this point in the history
Significantly improves the appearance of Hydroflow+ logs when the
terminal causes wrapping.
  • Loading branch information
shadaj authored Nov 20, 2024
1 parent 64578f3 commit 8d550b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hydro_deploy/core/src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ impl ProgressTracker {
.lock()
.unwrap();

if progress_bar.multi_progress.println(msg.as_ref()).is_err() {
if progress_bar.current_count == 0
|| progress_bar.multi_progress.println(msg.as_ref()).is_err()
{
println!("{}", msg.as_ref());
}
}
Expand Down

0 comments on commit 8d550b9

Please sign in to comment.