From e4d85450b8e7416e5c34b00cd78a9870644eb4b5 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 17 Dec 2022 19:01:48 +1100 Subject: Remove IP logging from gateway --- src/gateway/events/Connection.ts | 6 +++--- src/gateway/opcodes/Identify.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gateway/events/Connection.ts b/src/gateway/events/Connection.ts index 8747e3ad..ee75212f 100644 --- a/src/gateway/events/Connection.ts +++ b/src/gateway/events/Connection.ts @@ -35,9 +35,9 @@ export async function Connection( socket.on("close", Close); // @ts-ignore socket.on("message", Message); - console.log( - `[Gateway] New connection from ${socket.ipAddress}, total ${this.clients.size}`, - ); + // console.log( + // `[Gateway] New connection from ${socket.ipAddress}, total ${this.clients.size}`, + // ); const { searchParams } = new URL(`http://localhost${request.url}`); // @ts-ignore diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 60b5da4c..422261f7 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -312,5 +312,5 @@ export async function onIdentify(this: WebSocket, data: Payload) { await setupListener.call(this); - console.log(`${this.ipAddress} identified as ${d.user.id}`); + // console.log(`${this.ipAddress} identified as ${d.user.id}`); } -- cgit 1.4.1