File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 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 {
292292 const child = this . spawn ( )
293293 this . child = child
294294
295- // Log both to stdout and to the log directory.
295+ // Log child output to stdout/stderr and to the log directory.
296296 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+ } )
299301 }
300302 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+ } )
303307 }
304308
305309 this . logger . debug ( `spawned inner process ${ child . pid } ` )
You can’t perform that action at this time.
0 commit comments