summary refs log tree commit diff
path: root/src/gateway
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:01:48 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:01:48 +1100
commite4d85450b8e7416e5c34b00cd78a9870644eb4b5 (patch)
tree1288f45aad8b2b7c4bc27c782b82397f599b9ca4 /src/gateway
parentcomments and such (diff)
downloadserver-e4d85450b8e7416e5c34b00cd78a9870644eb4b5.tar.xz
Remove IP logging from gateway
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/events/Connection.ts6
-rw-r--r--src/gateway/opcodes/Identify.ts2
2 files changed, 4 insertions, 4 deletions
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}`);
 }