Call process.log from fallback stream on Windows
(cherry picked from commit d31e629b4f2daf3500a485caab2b2990a41e3ad4)
This commit is contained in:
Родитель
5220fbe2a4
Коммит
804d7cd4ca
|
@ -208,6 +208,11 @@ function createWritableStdioStream(fd) {
|
|||
const { Writable } = require('stream');
|
||||
stream = new Writable({
|
||||
write(buf, enc, cb) {
|
||||
if (process.platform === 'win32' &&
|
||||
process.env.ELECTRON_RUN_AS_NODE &&
|
||||
!process.env.ELECTRON_NO_ATTACH_CONSOLE) {
|
||||
process.log(buf.toString());
|
||||
}
|
||||
cb();
|
||||
}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче