~egtann/sjs

6f37ced72ea268d6d00dcc4a71c38d19e620798a — Evan Tann 1 year, 7 months ago df454ee
add remote addr to heartbeat log
1 files changed, 1 insertions(+), 2 deletions(-)

M http/service.go
M http/service.go => http/service.go +1 -2
@@ 97,8 97,7 @@ func (s *Service) addWorker(w http.ResponseWriter, r *http.Request) {
		return
	}
	role := r.Header.Get("X-Role")
	host := r.Header.Get("X-Host")
	s.log.Printf("good heartbeat (%s@%s)", role, host)
	s.log.Printf("good heartbeat (%s@%s)", role, r.RemoteAddr)
	w.WriteHeader(http.StatusOK)
}