From 3f16142b4090eaf89ef7825466df6943971c3aa8 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 a33c07a781..dac7ff748f 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 }