mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: print out term in decimal format
This commit is contained in:
parent
23b32a6cbe
commit
63ed202db6
@ -191,9 +191,9 @@ func (r *raft) String() string {
|
||||
|
||||
func (r *raft) poll(id uint64, v bool) (granted int) {
|
||||
if v {
|
||||
log.Printf("raft: %x received vote from %x at term %x", r.id, id, r.Term)
|
||||
log.Printf("raft: %x received vote from %x at term %d", r.id, id, r.Term)
|
||||
} else {
|
||||
log.Printf("raft: %x received vote rejection from %x at term %x", r.id, id, r.Term)
|
||||
log.Printf("raft: %x received vote rejection from %x at term %d", r.id, id, r.Term)
|
||||
}
|
||||
if _, ok := r.votes[id]; !ok {
|
||||
r.votes[id] = v
|
||||
|
Loading…
x
Reference in New Issue
Block a user