Compare commits

...

1 Commits

Author SHA1 Message Date
Rahul Padigela 6d54936f1b improvement: S3C-2997 add timestamp for exceptions 2020-08-24 22:50:58 -07:00
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,9 @@
'use strict'; // eslint-disable-line strict
/**
* Catch uncaught execeptions and add timestamp to aid debugging
*/
process.on('uncaughtException', err => {
process.stderr.write(`${new Date().toISOString()} ${err.stack}`);
});
require('./lib/server.js')();