minor: changed some logging

This commit is contained in:
Stephen McQuay 2013-11-16 18:56:15 -08:00
parent 4e55fa8ebe
commit f6b3027ded
1 changed files with 1 additions and 2 deletions

View File

@ -52,6 +52,7 @@ func startGame(w http.ResponseWriter, req *http.Request) {
tick = cfg.Tick
}
log.Printf("game info: %v %v %v %v", requested_game_name, width, height, tick)
g := games.get(requested_game_name)
if g == nil {
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)
return
}
log.Println("prekill")
g.kill <- true
log.Println("postkill")
message := struct {
Ok bool `json:"ok"`
Message string `json:"message"`