diff --git a/launcher/main.js b/launcher/main.js index 1b09fb949..553ab6d96 100644 --- a/launcher/main.js +++ b/launcher/main.js @@ -810,10 +810,12 @@ if (!lock) { crashTimeout = null customLog('Companion looks to be stable', 'Application') restartCounter = 0 - }, 5000) + }, 30000) }) child.on('exit', (code) => { + customLog(`Companion exited with code: ${code}`, 'Application') + if (code === 0) return restartCounter++ @@ -834,6 +836,9 @@ if (!lock) { child.on('stderr', (data) => { customLog(data.toString()) }) + child.on('warn', (data) => { + customLog(data.toString()) + }) child.on('message', (data) => { console.log('Received IPC message', data) if (data.messageType === 'fatal-error') {