Changing more loggings levels.

refs #135
This commit is contained in:
softsimon
2020-10-13 16:43:09 +07:00
parent 4a14085908
commit 3d374fd9d9
8 changed files with 18 additions and 18 deletions

View File

@@ -47,7 +47,7 @@ class Server {
cluster.on('exit', (worker, code, signal) => {
const workerId = worker.process['env'].workerId;
logger.info(`Mempool Worker PID #${worker.process.pid} workerId: ${workerId} died. Restarting in 10 seconds... ${signal || code}`);
logger.warn(`Mempool Worker PID #${worker.process.pid} workerId: ${workerId} died. Restarting in 10 seconds... ${signal || code}`);
setTimeout(() => {
const env = { workerId: workerId };
const newWorker = cluster.fork(env);