Skip to content

Commit

Permalink
Fix(native): don't override logs when restart nodes in native (#1741)
Browse files Browse the repository at this point in the history
* fix(native): do not override logs in node restart

* fmt
  • Loading branch information
pepoviola authored Mar 6, 2024
1 parent 6da2bf7 commit 8a2290f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,10 @@ export class NativeClient extends Client {
// sleep
if (timeout) await sleep(timeout * 1000);

// start
const log = fs.createWriteStream(this.processMap[name].logs);
// start without override the log file.
const log = fs.createWriteStream(this.processMap[name].logs, {
flags: "a",
});
console.log(["-c", ...this.processMap[name].cmd!]);
const nodeProcess = spawn(this.command, [
"-c",
Expand Down

0 comments on commit 8a2290f

Please sign in to comment.