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()
|
let log = OpenOptions::new()
|
||||||
.append(false)
|
.write(true)
|
||||||
.truncate(true)
|
.create_new(true)
|
||||||
.create(true)
|
|
||||||
.open(base.join(NODE_LOG))?;
|
.open(base.join(NODE_LOG))?;
|
||||||
|
|
||||||
Ok(log)
|
Ok(log)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue