diff options
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -111,3 +111,9 @@ app.use((err, req, res, next) => { server.listen(config.port, () => console.log(`CoinOS Server listening on port ${config.port}`) ); + +process.on("SIGINT", process.exit); + +process.on('uncaughtException', function (exception) { + console.log(exception); +}); |
