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:
parent
5abd7bf55a
commit
8928c5ee26
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue