diff --git a/src/progress/plain.rs b/src/progress/plain.rs index 5de2a80..2f440c2 100644 --- a/src/progress/plain.rs +++ b/src/progress/plain.rs @@ -32,11 +32,15 @@ impl PlainOutput { } } - fn print(&self, line: Line) { + fn print(&mut self, line: Line) { if line.noisy { return; } + if line.label.len() > self.label_width { + self.label_width = line.label.len(); + } + let label_style = match line.style { LineStyle::Normal => { ConsoleStyle::new().bold() @@ -82,7 +86,6 @@ impl ProgressOutput for PlainOutput { let message = self.receiver.recv().await; if message.is_none() { - log::info!("All senders dropped"); return Ok(self); }