Skip to content

Commit

Permalink
consul: fixing overly redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed May 5, 2015
1 parent a86f315 commit 8b8abe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consul/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ func (s *Server) handleDeregisterMember(reason string, member serf.Member) error

// Remove from Raft peers if this was a server
if valid, parts := isConsulServer(member); valid {
s.logger.Printf("[INFO] consul: server '%s' %s, removing as peer", member.Name, reason)
if err := s.removeConsulServer(member, parts.Port); err != nil {
return err
}
Expand Down Expand Up @@ -539,6 +538,8 @@ func (s *Server) removeConsulServer(m serf.Member, port int) error {
s.logger.Printf("[ERR] consul: failed to remove raft peer '%v': %v",
peer, err)
return err
} else if err == nil {
s.logger.Printf("[INFO] consul: removed server '%s' as peer", m.Name)
}
return nil
}
Expand Down

0 comments on commit 8b8abe2

Please sign in to comment.