Merge pull request #1450 from bcwaldon/raft-logging

raft: stop logging IDs with 0x prefix
This commit is contained in:
Brian Waldon 2014-10-28 08:17:11 -07:00
commit b6b5081254

View File

@ -219,7 +219,7 @@ func (n *node) run(r *raft) {
}
if rd.SoftState != nil && lead != rd.SoftState.Lead {
log.Printf("raft: leader changed from %#x to %#x", lead, rd.SoftState.Lead)
log.Printf("raft: leader changed from %x to %x", lead, rd.SoftState.Lead)
lead = rd.SoftState.Lead
if r.hasLeader() {
propc = n.propc