Fix monitor sub stream process crashing+

obj-track-as-separate-option
Moe 2023-12-22 09:59:31 -08:00
parent d822d26d01
commit f851aa2dd2
1 changed files with 17 additions and 0 deletions

View File

@ -332,6 +332,23 @@ module.exports = (s,config,lang) => {
})
}
subStreamProcess.stderr.on('data',(data) => {
const string = data.toString();
if(string.includes('No such')){
processKill(subStreamProcess);
return;
}
if(logLevel !== 'quiet'){
s.userLog({
ke: groupKey,
mid: monitorId,
},{
type: lang["Substream Process"],
msg: string
})
}
});
subStreamProcess.stdio[5].on('data',(data) => {
resetStreamCheck({
ke: groupKey,