Dont log unix socket emissions that are below 5ms due to log noise

This commit is contained in:
Rory&
2025-12-17 22:44:12 +01:00
parent 3dddaa249a
commit cf700f9966
+3 -1
View File
@@ -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`);
}
}