From 2873f6901eaed83824aa0bb4c33c77268bb941b3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 1 Jun 2021 23:26:18 -0700 Subject: remove pino from start command --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'index.js') diff --git a/index.js b/index.js index 6796dbe7..563572f7 100644 --- a/index.js +++ b/index.js @@ -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); +}); -- cgit v1.2.3