Browse Source

Remove newline in the main loop as it is adding an additional line in stdout

tags/v0.2.5-alpha
haixuanTao 2 years ago
parent
commit
4cbc9950ff
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      binaries/daemon/src/spawn.rs

+ 0
- 4
binaries/daemon/src/spawn.rs View File

@@ -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.


Loading…
Cancel
Save