Don't shut down the whole server, if error handling middleware is called.
The errors passed to error handling middleware aren't that severe, so it's fine to just stay alive...
This commit is contained in:
parent
56453409a5
commit
7656001cb5
|
@ -38,7 +38,6 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
args.app.error(function(err, req, res, next){
|
args.app.error(function(err, req, res, next){
|
||||||
res.send(500);
|
res.send(500);
|
||||||
console.error(err.stack ? err.stack : err.toString());
|
console.error(err.stack ? err.stack : err.toString());
|
||||||
exports.gracefulShutdown();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//connect graceful shutdown with sigint and uncaughtexception
|
//connect graceful shutdown with sigint and uncaughtexception
|
||||||
|
|
Loading…
Reference in New Issue