Fix log formating

pull/6/head
Rongjian Lan 7 years ago
parent 0498d87059
commit c66f7be673
  1. 4
      consensus/consensus_validator.go

@ -74,7 +74,7 @@ func (consensus *Consensus) processAnnounceMessage(payload []byte) {
consensus.blockHash = blockHash
// verify block data
if consensusId != consensus.consensusId {
log.Println("Received message with consensus Id: %s. My consensus Id: %s", consensusId, consensus.consensusId)
log.Printf("Received message with consensus Id: %d. My consensus Id: %d\n", consensusId, consensus.consensusId)
return
}
// sign block
@ -164,7 +164,7 @@ func (consensus *Consensus) processChallengeMessage(payload []byte) {
// verify block data and the aggregated signatures
if consensusId != consensus.consensusId {
log.Println("Received message with consensus Id: %s. My consensus Id: %s", consensusId, consensus.consensusId)
log.Printf("Received message with consensus Id: %d. My consensus Id: %d\n", consensusId, consensus.consensusId)
return
}

Loading…
Cancel
Save