From 8d550b94ae2c08486e1c2222d37e3ca8b5f018b7 Mon Sep 17 00:00:00 2001 From: Shadaj Laddad Date: Wed, 20 Nov 2024 15:19:31 -0800 Subject: [PATCH] feat(hydro_deploy): use regular println when no tasks are active (#1577) Significantly improves the appearance of Hydroflow+ logs when the terminal causes wrapping. --- hydro_deploy/core/src/progress.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hydro_deploy/core/src/progress.rs b/hydro_deploy/core/src/progress.rs index e4f8bdd6b4f6..545773db67d8 100644 --- a/hydro_deploy/core/src/progress.rs +++ b/hydro_deploy/core/src/progress.rs @@ -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()); } }