minor: changed some logging
This commit is contained in:
parent
4e55fa8ebe
commit
f6b3027ded
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user