raft: stop logging IDs with 0x prefix

release-2.0
Brian Waldon 2014-10-27 18:56:13 -07:00
parent 87327a245d
commit 6796669484
1 changed files with 1 additions and 1 deletions

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