ensure that we plumb our configured logger into all parts of the raft library

This commit is contained in:
R.B. Boyer 2019-02-01 12:19:13 -06:00
parent 3b60891bf8
commit a3e0fb8370
1 changed files with 2 additions and 2 deletions

View File

@ -462,7 +462,6 @@ func NewServerLogger(config *Config, logger *log.Logger, tokens *token.Store) (*
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)