chore(stored manifest): swap file name and to binary encoding

This commit is contained in:
DecDuck
2024-12-24 12:52:40 +11:00
parent f09605aa7e
commit 694f2fd46e
7 changed files with 75 additions and 33 deletions

View File

@ -101,16 +101,18 @@ impl ProcessManager {
let current_time = chrono::offset::Local::now();
let mut log_file = OpenOptions::new()
.truncate(true)
.append(true)
.read(true)
.create(true)
.open(self.log_output_dir.join(format!(
"{}-{}.log",
game_id,
current_time.timestamp()
)))
.open(
self.log_output_dir
.join(format!("{}-{}.log", game_id, current_time.timestamp())),
)
.map_err(|v| v.to_string())?;
log_file.write(&Vec::new()).unwrap();
writeln!(
log_file,
"Drop: launching {} with args {:?} in {}",