minor: changed some logging

This commit is contained in:
Stephen McQuay 2013-11-16 18:56:15 -08:00
parent 4e55fa8ebe
commit f6b3027ded

View File

@ -52,6 +52,7 @@ func startGame(w http.ResponseWriter, req *http.Request) {
tick = cfg.Tick tick = cfg.Tick
} }
log.Printf("game info: %v %v %v %v", requested_game_name, width, height, tick)
g := games.get(requested_game_name) g := games.get(requested_game_name)
if g == nil { if g == nil {
log.Printf("Game '%s' non-existant; making it now", requested_game_name) log.Printf("Game '%s' non-existant; making it now", requested_game_name)
@ -145,9 +146,7 @@ func stopGame(w http.ResponseWriter, req *http.Request) {
http.NotFound(w, req) http.NotFound(w, req)
return return
} }
log.Println("prekill")
g.kill <- true g.kill <- true
log.Println("postkill")
message := struct { message := struct {
Ok bool `json:"ok"` Ok bool `json:"ok"`
Message string `json:"message"` Message string `json:"message"`