Browse Source

fix glog Info

pull/2868/head
Konstantin Lebedev 3 years ago
parent
commit
89d32a0670
  1. 2
      weed/server/raft_hashicorp.go

2
weed/server/raft_hashicorp.go

@ -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)

Loading…
Cancel
Save