mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
ensure that we plumb our configured logger into all parts of the raft library
This commit is contained in:
parent
2c983902be
commit
88bb53d001
@ -462,7 +462,6 @@ func NewServerLogger(config *Config, logger *log.Logger, tokens *token.Store) (*
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Initialize Autopilot. This must happen before starting leadership monitoring
|
// Initialize Autopilot. This must happen before starting leadership monitoring
|
||||||
// as establishing leadership could attempt to use autopilot and cause a panic.
|
// as establishing leadership could attempt to use autopilot and cause a panic.
|
||||||
s.initAutopilot(config)
|
s.initAutopilot(config)
|
||||||
@ -514,6 +513,7 @@ func (s *Server) setupRaft() error {
|
|||||||
MaxPool: 3,
|
MaxPool: 3,
|
||||||
Timeout: 10 * time.Second,
|
Timeout: 10 * time.Second,
|
||||||
ServerAddressProvider: serverAddressProvider,
|
ServerAddressProvider: serverAddressProvider,
|
||||||
|
Logger: s.logger,
|
||||||
}
|
}
|
||||||
|
|
||||||
trans := raft.NewNetworkTransportWithConfig(transConfig)
|
trans := raft.NewNetworkTransportWithConfig(transConfig)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user