don't log getSTates

This commit is contained in:
stryan 2021-10-01 21:19:20 -04:00
parent 840eb64aa0
commit 1ecda43cd4
1 changed files with 2 additions and 2 deletions

View File

@ -40,14 +40,14 @@ func serveWs(c *coordinator.Coordinator, w http.ResponseWriter, r *http.Request)
log.Println("Error during message reading:", err) log.Println("Error during message reading:", err)
break break
} }
if cmd.Command != tome_lib.SessionCmdPoll { if cmd.Command != tome_lib.SessionCmdPoll && (cmd.GameCommand.Type != tome_lib.StateCmd && cmd.GameCommand.Cmd != "g") {
log.Printf("Received: %s", cmd) log.Printf("Received: %s", cmd)
} }
resp := c.Coordinate(&cmd) resp := c.Coordinate(&cmd)
if err != nil { if err != nil {
panic(err) panic(err)
} }
if cmd.Command != tome_lib.SessionCmdPoll { if cmd.Command != tome_lib.SessionCmdPoll && (cmd.GameCommand.Type != tome_lib.StateCmd && cmd.GameCommand.Cmd != "g") {
log.Printf("sending: %v", resp.Result) log.Printf("sending: %v", resp.Result)
} }
err = conn.WriteJSON(resp) err = conn.WriteJSON(resp)