add raft logging again.
parent
cdee0d26d0
commit
dfb67d1875
|
@ -40,6 +40,7 @@ var registeredCommands bool
|
|||
// Creates a new server.
|
||||
func NewRaftServer(path string, host string, port int, clusterConfig *ClusterConfiguration) *RaftServer {
|
||||
if !registeredCommands {
|
||||
raft.SetLogLevel(raft.Trace)
|
||||
registeredCommands = true
|
||||
raft.RegisterCommand(&AddPotentialServerCommand{})
|
||||
raft.RegisterCommand(&UpdateServerStateCommand{})
|
||||
|
|
Loading…
Reference in New Issue