add detailed log

This commit is contained in:
Alexander.Trofimov
2016-12-08 15:29:31 +03:00
parent d489d87e49
commit b3910513dd
3 changed files with 6 additions and 6 deletions

View File

@ -69,8 +69,8 @@ if (cluster.isMaster) {
logger.warn('worker %s started.', worker.pid);
}
cluster.on('exit', function(worker) {
logger.warn('worker %s died. restart...', worker.process.pid);
cluster.on('exit', (worker, code, signal) => {
logger.warn('worker %s died (code = %s; signal = %s). restart...', worker.process.pid, code, signal);
clearInterval(idCheckInterval);
endCheckHealth();
canStartCheck = true;