diff --git a/javascript/packages/orchestrator/src/providers/native/nativeClient.ts b/javascript/packages/orchestrator/src/providers/native/nativeClient.ts index bf3340819..6d1280da1 100644 --- a/javascript/packages/orchestrator/src/providers/native/nativeClient.ts +++ b/javascript/packages/orchestrator/src/providers/native/nativeClient.ts @@ -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",