From ede0aba0e8e8cdd9ca8144907009f86b9e441df0 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Fri, 14 Jan 2022 11:19:05 +0000 Subject: [PATCH] [log] set log to debug on vc message Signed-off-by: Leo Chen --- consensus/checks.go | 2 +- consensus/view_change.go | 4 ++-- core/tx_pool.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/consensus/checks.go b/consensus/checks.go index 745fdfb59..2e826f94c 100644 --- a/consensus/checks.go +++ b/consensus/checks.go @@ -145,7 +145,7 @@ func (consensus *Consensus) onViewChangeSanityCheck(recvMsg *FBFTMessage) bool { // TODO: if difference is only one, new leader can still propose the same committed block to avoid another view change // TODO: new leader catchup without ignore view change message - consensus.getLogger().Info(). + consensus.getLogger().Debug(). Uint64("MsgBlockNum", recvMsg.BlockNum). Uint64("MyViewChangingID", consensus.GetViewChangingID()). Uint64("MsgViewChangingID", recvMsg.ViewID). diff --git a/consensus/view_change.go b/consensus/view_change.go index 70d36db9b..58e90950a 100644 --- a/consensus/view_change.go +++ b/consensus/view_change.go @@ -356,7 +356,7 @@ func (consensus *Consensus) onViewChange(recvMsg *FBFTMessage) { consensus.mutex.Lock() defer consensus.mutex.Unlock() - consensus.getLogger().Info(). + consensus.getLogger().Debug(). Uint64("viewID", recvMsg.ViewID). Uint64("blockNum", recvMsg.BlockNum). Interface("SenderPubkeys", recvMsg.SenderPubkeys). @@ -366,7 +366,7 @@ func (consensus *Consensus) onViewChange(recvMsg *FBFTMessage) { newLeaderKey := recvMsg.LeaderPubkey newLeaderPriKey, err := consensus.GetLeaderPrivateKey(newLeaderKey.Object) if err != nil { - consensus.getLogger().Info(). + consensus.getLogger().Debug(). Err(err). Interface("SenderPubkeys", recvMsg.SenderPubkeys). Str("NextLeader", recvMsg.LeaderPubkey.Bytes.Hex()). diff --git a/core/tx_pool.go b/core/tx_pool.go index 655b2f147..610250b3e 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -1332,7 +1332,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) { for _, tx := range list.Ready(pool.pendingState.GetNonce(addr)) { hash := tx.Hash() if pool.promoteTx(addr, tx) { - logger.Info().Str("hash", hash.Hex()).Msg("Promoting queued transaction") + logger.Debug().Str("hash", hash.Hex()).Msg("Promoting queued transaction") promoted = append(promoted, tx) } }