From 501dd9315f084401750060ac4595982c046a1edd Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Mon, 8 Jun 2026 17:47:52 -0400 Subject: [PATCH] lighter ctx for logging --- game/game.go | 15 ++++++++++++++- game/todo | 4 +--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/game/game.go b/game/game.go index 06cad22..0025066 100644 --- a/game/game.go +++ b/game/game.go @@ -37,7 +37,20 @@ type MonopolyServer struct { } func (ctx *Context) logGameCtx() { - data, _ := json.MarshalIndent(ctx, "", " ") + + type miniContext struct { + Players Players + Turn Turn + Visitors Visitors + properties Properties + } + + data, _ := json.MarshalIndent(miniContext{ + Players: ctx.Players, + Turn: ctx.Turn, + Visitors: ctx.Visitors, + properties: ctx.Properties, + }, "", " ") fmt.Println(string(data)) } diff --git a/game/todo b/game/todo index 76c8585..bb30a25 100644 --- a/game/todo +++ b/game/todo @@ -10,6 +10,4 @@ - TODO Bankruptcy -- TODO user auth - -- TODO Server Side Events (SSE) for updating game on client +- TODO Unowned event -- 2.54.0