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 0558b9c44b
commit 3f16142b40
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 3 additions and 0 deletions

View File

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