raft: stop logging IDs with 0x prefix
parent
87327a245d
commit
6796669484
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue