From be8e30cebf8101f8dc50123f9ceea63c0e3371c9 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 30 Dec 2020 16:54:07 -0800 Subject: [PATCH] deployment.rs: Strip line endings for error logs --- src/deployment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deployment.rs b/src/deployment.rs index d15247e..cf59c35 100644 --- a/src/deployment.rs +++ b/src/deployment.rs @@ -118,7 +118,7 @@ pub async fn deploy(tasks: Vec, max_parallelism: Option, if let Some(lines) = logs.chunks(10).rev().next() { println!("Last {} lines of logs:", lines.len()); for line in lines { - println!("{}", line); + println!("{}", line.trim_end()); } } else { println!("The log is empty.");