Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 44196ab

Browse files
kevinsawickideepak1556
authored andcommitted
Call process.log from fallback stream on Windows
(cherry picked from commit d31e629)
1 parent b46c288 commit 44196ab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/internal/process/stdio.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ function createWritableStdioStream(fd) {
208208
const { Writable } = require('stream');
209209
stream = new Writable({
210210
write(buf, enc, cb) {
211+
if (process.platform === 'win32' &&
212+
process.env.ELECTRON_RUN_AS_NODE &&
213+
!process.env.ELECTRON_NO_ATTACH_CONSOLE) {
214+
process.log(buf.toString());
215+
}
211216
cb();
212217
}
213218
});

0 commit comments

Comments
 (0)