Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Fix node file rotation with `rad node start`
cloudhead committed 2 years ago
commit 8928c5ee2628e0b4d738289b5030fc3e2a918e5e
parent 5abd7bf55a093341231c8b71953777068eade0e2
1 file changed +2 -3
modified radicle-cli/src/commands/node/control.rs
@@ -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)