From 88bb53d00184034c6517f31bd083ec9d2c0f1e8d Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Fri, 1 Feb 2019 12:19:13 -0600 Subject: [PATCH] ensure that we plumb our configured logger into all parts of the raft library --- agent/consul/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/consul/server.go b/agent/consul/server.go index f9ed7ba253..f82331f4b8 100644 --- a/agent/consul/server.go +++ b/agent/consul/server.go @@ -461,8 +461,7 @@ func NewServerLogger(config *Config, logger *log.Logger, tokens *token.Store) (* s.Shutdown() return nil, err } - - + // Initialize Autopilot. This must happen before starting leadership monitoring // as establishing leadership could attempt to use autopilot and cause a panic. s.initAutopilot(config) @@ -514,6 +513,7 @@ func (s *Server) setupRaft() error { MaxPool: 3, Timeout: 10 * time.Second, ServerAddressProvider: serverAddressProvider, + Logger: s.logger, } trans := raft.NewNetworkTransportWithConfig(transConfig)