aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-06-01 23:26:18 -0700
committerAdam Soltys <[email protected]>2021-06-09 16:07:17 -0700
commit2873f6901eaed83824aa0bb4c33c77268bb941b3 (patch)
tree94429d044ce44360bba5680e52358e7fc8b931fd /index.js
parent386a3e099a1d8169a722549e1db0b71054ea06e8 (diff)
downloadcoinos-server-2873f6901eaed83824aa0bb4c33c77268bb941b3.tar.gz
coinos-server-2873f6901eaed83824aa0bb4c33c77268bb941b3.zip
remove pino from start command
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 6 insertions, 0 deletions
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);
+});