From 4cbc9950ffe08bbb6ebfcb7761326e63c94dfb69 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Fri, 21 Jul 2023 20:42:41 +0200 Subject: [PATCH] Remove newline in the main loop as it is adding an additional line in stdout --- binaries/daemon/src/spawn.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/binaries/daemon/src/spawn.rs b/binaries/daemon/src/spawn.rs index f8173852..2527ccde 100644 --- a/binaries/daemon/src/spawn.rs +++ b/binaries/daemon/src/spawn.rs @@ -282,10 +282,6 @@ pub async fn spawn_node( .write_all(message.as_bytes()) .await .map_err(|err| error!("Could not log {message} to file due to {err}")); - let _ = file - .write(b"\n") - .await - .map_err(|err| error!("Could not add newline to log file due to {err}")); let formatted: String = message.lines().map(|l| format!(" {l}\n")).collect(); debug!("{dataflow_id}/{} logged:\n{formatted}", node.id.clone()); // Make sure that all data has been synced to disk.