File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -292,14 +292,18 @@ export class ParentProcess extends Process {
292
292
const child = this . spawn ( )
293
293
this . child = child
294
294
295
- // Log both to stdout and to the log directory.
295
+ // Log child output to stdout/stderr and to the log directory.
296
296
if ( child . stdout ) {
297
- child . stdout . pipe ( this . logStdoutStream )
298
- child . stdout . pipe ( process . stdout )
297
+ child . stdout . on ( "data" , ( data ) => {
298
+ this . logStdoutStream . write ( data )
299
+ process . stdout . write ( data )
300
+ } )
299
301
}
300
302
if ( child . stderr ) {
301
- child . stderr . pipe ( this . logStderrStream )
302
- child . stderr . pipe ( process . stderr )
303
+ child . stderr . on ( "data" , ( data ) => {
304
+ this . logStderrStream . write ( data )
305
+ process . stderr . write ( data )
306
+ } )
303
307
}
304
308
305
309
this . logger . debug ( `spawned inner process ${ child . pid } ` )
You can’t perform that action at this time.
0 commit comments