From 8c3a6508e9f22d4693bcc7c8eaa39e88bb81739c Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 22 Jan 2015 12:03:35 -0500 Subject: [PATCH] raft: Add applied to the newRaft log message. --- raft/raft.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raft/raft.go b/raft/raft.go index a93dacfc5..6c4d48354 100644 --- a/raft/raft.go +++ b/raft/raft.go @@ -183,8 +183,8 @@ func newRaft(id uint64, peers []uint64, election, heartbeat int, storage Storage nodesStrs = append(nodesStrs, fmt.Sprintf("%x", n)) } - log.Printf("raft: newRaft %x [peers: [%s], term: %d, commit: %d, lastindex: %d, lastterm: %d]", - r.id, strings.Join(nodesStrs, ","), r.Term, r.raftLog.committed, r.raftLog.lastIndex(), r.raftLog.lastTerm()) + log.Printf("raft: newRaft %x [peers: [%s], term: %d, commit: %d, applied: %d, lastindex: %d, lastterm: %d]", + r.id, strings.Join(nodesStrs, ","), r.Term, r.raftLog.committed, r.raftLog.applied, r.raftLog.lastIndex(), r.raftLog.lastTerm()) return r }