Nuke trace-level logging in heartbeats

This commit is contained in:
Sean Chittenden 2016-05-27 03:48:32 -07:00
parent d76c042a13
commit dde6a4074d
No known key found for this signature in database
GPG key ID: 4EBC9DC16C2E5E16

View file

@ -101,18 +101,6 @@ func (s *Server) invalidateHeartbeat(id string) {
if err := s.endpoints.Node.UpdateStatus(&req, &resp); err != nil {
s.logger.Printf("[ERR] nomad.heartbeat: update status failed: %v", err)
}
if resp.LeaderRPCAddr == "" {
s.logger.Printf("[TRACE] nomad.heartbeat: no leader address returned during heartbeat")
} else {
s.logger.Printf("[TRACE] nomad.heartbeat: current leader address according to server %q is %v", s.rpcAdvertise.String(), resp.LeaderRPCAddr)
}
if len(resp.Servers) == 0 {
s.logger.Printf("[TRACE] nomad.heartbeat: no servers returned during heartbeat")
} else {
s.logger.Printf("[TRACE] nomad.heartbeat: current servers according to server is %v", resp.Servers)
}
}
// clearHeartbeatTimer is used to clear the heartbeat time for