Browse Source

rafttest: fix build error

raftLogger is not exported so we can't access it from here. Go back to
using log.
Iago López Galeiras 10 years ago
parent
commit
e698192e4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/rafttest/node.go

+ 1 - 1
raft/rafttest/node.go

@@ -59,7 +59,7 @@ func (n *node) start() {
 				n.Step(context.TODO(), m)
 				n.Step(context.TODO(), m)
 			case <-n.stopc:
 			case <-n.stopc:
 				n.Stop()
 				n.Stop()
-				raftLogger.Infof("raft.%d: stop", n.id)
+				log.Printf("raft.%d: stop", n.id)
 				n.Node = nil
 				n.Node = nil
 				close(n.stopc)
 				close(n.stopc)
 				return
 				return