From 5df4b6bef273690ca78eaea59108d09cdb63779e Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 30 Aug 2016 10:23:32 -0700 Subject: [PATCH] Adds a log warning when operator peer changes occur. --- consul/operator_endpoint.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consul/operator_endpoint.go b/consul/operator_endpoint.go index a33c07a78..dac7ff748 100644 --- a/consul/operator_endpoint.go +++ b/consul/operator_endpoint.go @@ -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 }