From: Skullheadx Date: Mon, 8 Jun 2026 21:47:52 +0000 (-0400) Subject: lighter ctx for logging X-Git-Url: http://git.skullheadx.com/projects/suckless.html?a=commitdiff_plain;h=501dd9315f084401750060ac4595982c046a1edd;p=monopoly-web.git lighter ctx for logging --- 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