Browse Source

raft: stop logging IDs with 0x prefix

Brian Waldon 11 years ago
parent
commit
6796669484
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/node.go

+ 1 - 1
raft/node.go

@@ -219,7 +219,7 @@ func (n *node) run(r *raft) {
 		}
 		}
 
 
 		if rd.SoftState != nil && lead != rd.SoftState.Lead {
 		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
 			lead = rd.SoftState.Lead
 			if r.hasLeader() {
 			if r.hasLeader() {
 				propc = n.propc
 				propc = n.propc