Browse Source

Include machine ID in event record file

In case multiple daemons are running in the same working directory.
record-events
Philipp Oppermann 2 years ago
parent
commit
3cf33f72a6
Failed to extract signature
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      binaries/daemon/src/lib.rs

+ 1
- 1
binaries/daemon/src/lib.rs View File

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


Loading…
Cancel
Save