fix glog Info

This commit is contained in:
Konstantin Lebedev 2022-04-05 13:43:34 +05:00
parent 7dd93a88ac
commit 89d32a0670

View file

@ -116,7 +116,7 @@ func NewHashicorpRaftServer(option *RaftServerOption) (*RaftServer, error) {
} }
if option.RaftBootstrap || len(s.RaftHashicorp.GetConfiguration().Configuration().Servers) == 0 { if option.RaftBootstrap || len(s.RaftHashicorp.GetConfiguration().Configuration().Servers) == 0 {
cfg := s.AddPeersConfiguration() cfg := s.AddPeersConfiguration()
glog.V(0).Infoln("Bootstrapping new cluster %+v", cfg) glog.V(0).Infof("Bootstrapping new cluster %+v", cfg)
f := s.RaftHashicorp.BootstrapCluster(cfg) f := s.RaftHashicorp.BootstrapCluster(cfg)
if err := f.Error(); err != nil { if err := f.Error(); err != nil {
return nil, fmt.Errorf("raft.Raft.BootstrapCluster: %v", err) return nil, fmt.Errorf("raft.Raft.BootstrapCluster: %v", err)