Adds a log warning when operator peer changes occur.
This commit is contained in:
parent
209f003b12
commit
5df4b6bef2
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue