Adds a log warning when operator peer changes occur.

This commit is contained in:
James Phillips 2016-08-30 10:23:32 -07:00
parent 209f003b12
commit 5df4b6bef2
No known key found for this signature in database
GPG key ID: 77183E682AC5FC11

View file

@ -113,8 +113,11 @@ REMOVE:
// pass.
future := op.srv.raft.RemovePeer(args.Address)
if err := future.Error(); err != nil {
op.srv.logger.Printf("[WARN] consul.operator: Failed to remove Raft peer %q: %v",
args.Address, err)
return err
}
op.srv.logger.Printf("[WARN] consul.operator: Removed Raft peer %q by", args.Address)
return nil
}