Logging added
This commit is contained in:
1
chess.go
1
chess.go
@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user