Skip to content

Commit

Permalink
Merge pull request #844 from unihorn/102
Browse files Browse the repository at this point in the history
chore(peer_server): improve log for auto removal
  • Loading branch information
philips committed Jun 23, 2014
2 parents fb32a99 + f387bf8 commit 3efb4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/peer_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ func (s *PeerServer) monitorActiveSize() {
// If we have more active nodes than we should then remove.
if peerCount > activeSize {
peer := peers[rand.Intn(len(peers))]
log.Infof("%s: removing: %v", s.Config.Name, peer)
log.Infof("%s: removing node: %v; peer number %d > expected size %d", s.Config.Name, peer, peerCount, activeSize)
if _, err := s.raftServer.Do(&RemoveCommand{Name: peer}); err != nil {
log.Infof("%s: warning: remove error: %v", s.Config.Name, err)
}
Expand Down

0 comments on commit 3efb4d8

Please sign in to comment.