aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-10 06:54:03 +0000
committerAdam Soltys <[email protected]>2024-02-10 06:54:04 +0000
commit013575bf514933c8ceb142146c3bc841d45a03bc (patch)
tree6dafe718d9c4be5ccfce1cdadf33c11703ecd64e /index.js
parentfa78755b4357a09c61107405580c36c9cc2e2fbb (diff)
downloadcoinos-server-013575bf514933c8ceb142146c3bc841d45a03bc.tar.gz
coinos-server-013575bf514933c8ceb142146c3bc841d45a03bc.zip
ignore socket errors
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.js b/index.js
index 2bf9874e..c2f70c4c 100644
--- a/index.js
+++ b/index.js
@@ -111,5 +111,6 @@ let port = process.env.PORT || 3119;
app.listen({ host, port });
-process.on("unhandledRejection", console.log)
-process.on("uncaughtException", console.log)
+let logerr = (e) => e.message.startsWith("MASK") || console.log(e);
+process.on("unhandledRejection", logerr);
+process.on("uncaughtException", logerr);