deployment.rs: Strip line endings for error logs

This commit is contained in:
Zhaofeng Li 2020-12-30 16:54:07 -08:00
parent 1125eb6d1b
commit be8e30cebf

View file

@ -118,7 +118,7 @@ pub async fn deploy(tasks: Vec<DeploymentTask>, max_parallelism: Option<usize>,
if let Some(lines) = logs.chunks(10).rev().next() { if let Some(lines) = logs.chunks(10).rev().next() {
println!("Last {} lines of logs:", lines.len()); println!("Last {} lines of logs:", lines.len());
for line in lines { for line in lines {
println!("{}", line); println!("{}", line.trim_end());
} }
} else { } else {
println!("The log is empty."); println!("The log is empty.");