From f05990a5c5ada778b6668678a6fb4d855f419ab5 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sat, 31 Oct 2020 00:09:56 -0400 Subject: [PATCH] Logging added --- chess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess.go b/chess.go index 48f95f2..6799eb1 100644 --- a/chess.go +++ b/chess.go @@ -21,7 +21,6 @@ func chessCommand(m chat1.MsgSummary) { return } if parts[1] == "show" { - log.LogInfo("Game found: %+v, %+v", &g, g) go showBoard(m, &g) return } @@ -78,6 +77,7 @@ func showBoard(m chat1.MsgSummary, g *Game) { log.LogInfo("Creating board position (g.Game.Position().String())") // create board position fenStr := g.Game.Position().String() + log.LogInfo("Creating pos &chess.Position{}") pos := &chess.Position{} if err := pos.UnmarshalText([]byte(fenStr)); err != nil { log.LogError(fmt.Sprintf("Error in ShowBoard pos.UnmasrhalText: %+v\n", err))