From 3cf33f72a6fbac8218194cff577fdd99134ffdd5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 16 Jun 2023 17:19:23 +0200 Subject: [PATCH] Include machine ID in event record file In case multiple daemons are running in the same working directory. --- binaries/daemon/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/daemon/src/lib.rs b/binaries/daemon/src/lib.rs index f3cb9fea..db876a2b 100644 --- a/binaries/daemon/src/lib.rs +++ b/binaries/daemon/src/lib.rs @@ -355,7 +355,7 @@ impl Daemon { record_folder.display() ) })?; - let record_file_path = record_folder.join("events.txt"); + let record_file_path = record_folder.join(format!("events-{}.txt", self.machine_id)); let mut record_file = tokio::fs::OpenOptions::new() .create(true) .append(true)