Skip to content

Commit

Permalink
make stderr inherit
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Jan 6, 2025
1 parent aefa1cc commit e9a3108
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function runScriptAndGetProcessInfo(
await writeFile(scriptName, scriptContent, { encoding: 'utf8' });
const logFile = name + '.logs.txt';

const script = spawn(process.execPath, [scriptName], { stdio: ['ignore', 'ignore', 'ignore'] });
const script = spawn(process.execPath, [scriptName], { stdio: ['ignore', 'ignore', 'inherit'] });

const willClose = once(script, 'close');

Expand Down

0 comments on commit e9a3108

Please sign in to comment.