cli: Fix node file rotation with `rad node start`

This was causing issues (error 22) on macOS and some Linux systems.
This commit is contained in:
cloudhead 2024-02-05 16:26:55 +01:00
parent 5abd7bf55a
commit 8928c5ee26
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -277,9 +277,8 @@ fn log_rotate(profile: &Profile) -> io::Result<File> {
}
let log = OpenOptions::new()
.append(false)
.truncate(true)
.create(true)
.write(true)
.create_new(true)
.open(base.join(NODE_LOG))?;
Ok(log)