Logging added

This commit is contained in:
2020-10-31 00:08:49 -04:00
parent 8d2518d9f4
commit 9693333236

View File

@ -82,6 +82,7 @@ func showBoard(m chat1.MsgSummary, g *Game) {
if err := pos.UnmarshalText([]byte(fenStr)); err != nil { if err := pos.UnmarshalText([]byte(fenStr)); err != nil {
log.LogError(fmt.Sprintf("Error in ShowBoard pos.UnmasrhalText: %+v\n", err)) log.LogError(fmt.Sprintf("Error in ShowBoard pos.UnmasrhalText: %+v\n", err))
} }
log.LogInfo("Trying to check Moves History")
if len(g.Game.MovesHistory()) != 0 { if len(g.Game.MovesHistory()) != 0 {
// write board SVG to file // write board SVG to file
yellow := color.RGBA{255, 255, 0, 1} yellow := color.RGBA{255, 255, 0, 1}