don't log getSTates
This commit is contained in:
parent
840eb64aa0
commit
1ecda43cd4
@ -40,14 +40,14 @@ func serveWs(c *coordinator.Coordinator, w http.ResponseWriter, r *http.Request)
|
||||
log.Println("Error during message reading:", err)
|
||||
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)
|
||||
}
|
||||
resp := c.Coordinate(&cmd)
|
||||
if err != nil {
|
||||
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)
|
||||
}
|
||||
err = conn.WriteJSON(resp)
|
||||
|
Loading…
Reference in New Issue
Block a user