Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
cli: Fix node file rotation with rad node start
Browse files Browse the repository at this point in the history
This was causing issues (error 22) on macOS and some Linux systems.
  • Loading branch information
cloudhead committed Feb 5, 2024
1 parent 5abd7bf commit 8928c5e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions radicle-cli/src/commands/node/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8928c5e

Please sign in to comment.