Explorar el Código

raft: stop logging IDs with 0x prefix

Brian Waldon hace 11 años
padre
commit
6796669484
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {
-			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