forked from svrjs/svrjs
Main process crashes no longer display as worker crashes.
This commit is contained in:
parent
09ef59832f
commit
2aaa584e3c
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -5856,7 +5856,7 @@ function saveConfig() {
|
||||||
if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
if (cluster.isPrimary || cluster.isPrimary === undefined) {
|
||||||
// Crash handler
|
// Crash handler
|
||||||
function crashHandlerMaster(err) {
|
function crashHandlerMaster(err) {
|
||||||
serverconsole.locerrmessage("SVR.JS worker just crashed!!!");
|
serverconsole.locerrmessage("SVR.JS main process just crashed!!!");
|
||||||
serverconsole.locerrmessage("Stack:");
|
serverconsole.locerrmessage("Stack:");
|
||||||
serverconsole.locerrmessage(err.stack ? generateErrorStack(err) : String(err));
|
serverconsole.locerrmessage(err.stack ? generateErrorStack(err) : String(err));
|
||||||
process.exit(err.errno !== undefined ? err.errno : 1);
|
process.exit(err.errno !== undefined ? err.errno : 1);
|
||||||
|
|
Reference in a new issue