/ask POST, and other fixes

This commit is contained in:
mrfry 2020-12-19 12:47:06 +01:00
parent 19b8fdc5ab
commit c6da65ce40
3 changed files with 119 additions and 58 deletions

View file

@ -103,6 +103,7 @@ function getAWorker(i, initData) {
})
worker.on('exit', (code) => {
// TODO: this is critical, whole server should stop, or child threads should be restarted
logger.Log(
`[MAIN]: worker #${i} exit code: ${code}`,
code === 0 ? logger.GetColor('redbg') : logger.GetColor('green')