add raft logging again.

pull/17/head
John Shahid 2013-10-31 21:14:37 -04:00
parent cdee0d26d0
commit dfb67d1875
1 changed files with 1 additions and 0 deletions

View File

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