From 4edc443fdb9e49575025b1692ba20955519cf9f8 Mon Sep 17 00:00:00 2001 From: not-nullptr Date: Tue, 19 Mar 2024 18:24:37 +0000 Subject: [PATCH] add room logging --- src/routes/lobby/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/lobby/+server.ts b/src/routes/lobby/+server.ts index 9db5355..788eed5 100644 --- a/src/routes/lobby/+server.ts +++ b/src/routes/lobby/+server.ts @@ -44,7 +44,6 @@ export async function POST({ request, getClientAddress }) { const user = await useAuth(token); console.log(user); if (!user) return new Response(null, { status: 401 }); - console.log(body, getClientAddress()); const room = RoomManager.createRoom({ name: body.name, description: parsedDescription[0] || "", @@ -62,5 +61,6 @@ export async function POST({ request, getClientAddress }) { host: user, hasPassword: body.hasPassword || false, }); + console.log("Room added:", JSON.stringify(room, null, 2)); return json(room.toJSON()); }