disabled erroHandler (Joan)

This commit is contained in:
Carlos Jimenez Ruiz 2019-01-22 14:10:34 +01:00
parent 8f23b0b127
commit ea0e56e6a6
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
module.exports = (app) => {
process.on('uncaughtException', (err) => {
module.exports = app => {
process.on('uncaughtException', err => {
console.error(`Caught exception: ${err}`);
});
process.on('warning', (err) => {
process.on('warning', () => {
console.error(`My warning err`);
});

View File

@ -12,7 +12,7 @@ module.exports = app => {
smtp.init();
require('./lib/router')(app);
require('./lib/errorHandler')(app);
// require('./lib/errorHandler')(app);
};