summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 22:44:12 +0100
committerRory& <root@rory.gay>2025-12-17 22:44:12 +0100
commitcf700f996617b85218fdc3a168b2ff93c133564a (patch)
tree13021526ec83031baf1df113534c6025a43b7edd
parentAdd common scams from discord to blocked usernames by default (diff)
downloadserver-ts-cf700f996617b85218fdc3a168b2ff93c133564a.tar.xz
Dont log unix socket emissions that are below 5ms due to log noise
-rw-r--r--src/util/util/Event.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/util/Event.ts b/src/util/util/Event.ts

index 9faae5fe..a9f129c7 100644 --- a/src/util/util/Event.ts +++ b/src/util/util/Event.ts
@@ -324,6 +324,8 @@ class UnixSocketWriter { } } - console.log(`[Events] Unix socket writer emitted to ${Object.entries(this.clients).length} sockets in ${tsw.elapsed().totalMilliseconds}ms`); + if (tsw.elapsed().totalMilliseconds > 5) + // else it's too noisy + console.log(`[Events] Unix socket writer emitted to ${Object.entries(this.clients).length} sockets in ${tsw.elapsed().totalMilliseconds}ms`); } }