mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
log: move some Info to Debug
This commit is contained in:
parent
de0fc87c1c
commit
7d493774c7
@ -129,7 +129,7 @@ func (bcR *BlockchainReactor) Receive(chID byte, src *p2p.Peer, msgBytes []byte)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("Receive", "src", src, "chID", chID, "msg", msg)
|
log.Debug("Receive", "src", src, "chID", chID, "msg", msg)
|
||||||
|
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case *bcBlockRequestMessage:
|
case *bcBlockRequestMessage:
|
||||||
|
@ -152,7 +152,7 @@ func (conR *ConsensusReactor) Receive(chID byte, src *p2p.Peer, msgBytes []byte)
|
|||||||
// TODO punish peer?
|
// TODO punish peer?
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("Receive", "src", src, "chId", chID, "msg", msg)
|
log.Debug("Receive", "src", src, "chId", chID, "msg", msg)
|
||||||
|
|
||||||
// Get peer states
|
// Get peer states
|
||||||
ps := src.Data.Get(types.PeerStateKey).(*PeerState)
|
ps := src.Data.Get(types.PeerStateKey).(*PeerState)
|
||||||
@ -449,21 +449,21 @@ OUTER_LOOP:
|
|||||||
// If there are lastCommits to send...
|
// If there are lastCommits to send...
|
||||||
if prs.Step == RoundStepNewHeight {
|
if prs.Step == RoundStepNewHeight {
|
||||||
if ps.PickSendVote(rs.LastCommit) {
|
if ps.PickSendVote(rs.LastCommit) {
|
||||||
log.Info("Picked rs.LastCommit to send")
|
log.Debug("Picked rs.LastCommit to send")
|
||||||
continue OUTER_LOOP
|
continue OUTER_LOOP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If there are prevotes to send...
|
// If there are prevotes to send...
|
||||||
if prs.Step <= RoundStepPrevote && prs.Round != -1 && prs.Round <= rs.Round {
|
if prs.Step <= RoundStepPrevote && prs.Round != -1 && prs.Round <= rs.Round {
|
||||||
if ps.PickSendVote(rs.Votes.Prevotes(prs.Round)) {
|
if ps.PickSendVote(rs.Votes.Prevotes(prs.Round)) {
|
||||||
log.Info("Picked rs.Prevotes(prs.Round) to send")
|
log.Debug("Picked rs.Prevotes(prs.Round) to send")
|
||||||
continue OUTER_LOOP
|
continue OUTER_LOOP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If there are precommits to send...
|
// If there are precommits to send...
|
||||||
if prs.Step <= RoundStepPrecommit && prs.Round != -1 && prs.Round <= rs.Round {
|
if prs.Step <= RoundStepPrecommit && prs.Round != -1 && prs.Round <= rs.Round {
|
||||||
if ps.PickSendVote(rs.Votes.Precommits(prs.Round)) {
|
if ps.PickSendVote(rs.Votes.Precommits(prs.Round)) {
|
||||||
log.Info("Picked rs.Precommits(prs.Round) to send")
|
log.Debug("Picked rs.Precommits(prs.Round) to send")
|
||||||
continue OUTER_LOOP
|
continue OUTER_LOOP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -471,7 +471,7 @@ OUTER_LOOP:
|
|||||||
if prs.ProposalPOLRound != -1 {
|
if prs.ProposalPOLRound != -1 {
|
||||||
if polPrevotes := rs.Votes.Prevotes(prs.ProposalPOLRound); polPrevotes != nil {
|
if polPrevotes := rs.Votes.Prevotes(prs.ProposalPOLRound); polPrevotes != nil {
|
||||||
if ps.PickSendVote(polPrevotes) {
|
if ps.PickSendVote(polPrevotes) {
|
||||||
log.Info("Picked rs.Prevotes(prs.ProposalPOLRound) to send")
|
log.Debug("Picked rs.Prevotes(prs.ProposalPOLRound) to send")
|
||||||
continue OUTER_LOOP
|
continue OUTER_LOOP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -482,7 +482,7 @@ OUTER_LOOP:
|
|||||||
// If peer is lagging by height 1, send LastCommit.
|
// If peer is lagging by height 1, send LastCommit.
|
||||||
if prs.Height != 0 && rs.Height == prs.Height+1 {
|
if prs.Height != 0 && rs.Height == prs.Height+1 {
|
||||||
if ps.PickSendVote(rs.LastCommit) {
|
if ps.PickSendVote(rs.LastCommit) {
|
||||||
log.Info("Picked rs.LastCommit to send")
|
log.Debug("Picked rs.LastCommit to send")
|
||||||
continue OUTER_LOOP
|
continue OUTER_LOOP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -493,9 +493,9 @@ OUTER_LOOP:
|
|||||||
// Load the block commit for prs.Height,
|
// Load the block commit for prs.Height,
|
||||||
// which contains precommit signatures for prs.Height.
|
// which contains precommit signatures for prs.Height.
|
||||||
commit := conR.blockStore.LoadBlockCommit(prs.Height)
|
commit := conR.blockStore.LoadBlockCommit(prs.Height)
|
||||||
log.Info("Loaded BlockCommit for catch-up", "height", prs.Height, "commit", commit)
|
log.Debug("Loaded BlockCommit for catch-up", "height", prs.Height, "commit", commit)
|
||||||
if ps.PickSendVote(commit) {
|
if ps.PickSendVote(commit) {
|
||||||
log.Info("Picked Catchup commit to send")
|
log.Debug("Picked Catchup commit to send")
|
||||||
continue OUTER_LOOP
|
continue OUTER_LOOP
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -759,23 +759,23 @@ func (ps *PeerState) setHasVote(height int, round int, type_ byte, index int) {
|
|||||||
switch type_ {
|
switch type_ {
|
||||||
case types.VoteTypePrevote:
|
case types.VoteTypePrevote:
|
||||||
ps.Prevotes.SetIndex(index, true)
|
ps.Prevotes.SetIndex(index, true)
|
||||||
log.Info("SetHasVote(round-match)", "prevotes", ps.Prevotes, "index", index)
|
log.Debug("SetHasVote(round-match)", "prevotes", ps.Prevotes, "index", index)
|
||||||
case types.VoteTypePrecommit:
|
case types.VoteTypePrecommit:
|
||||||
ps.Precommits.SetIndex(index, true)
|
ps.Precommits.SetIndex(index, true)
|
||||||
log.Info("SetHasVote(round-match)", "precommits", ps.Precommits, "index", index)
|
log.Debug("SetHasVote(round-match)", "precommits", ps.Precommits, "index", index)
|
||||||
}
|
}
|
||||||
} else if ps.CatchupCommitRound == round {
|
} else if ps.CatchupCommitRound == round {
|
||||||
switch type_ {
|
switch type_ {
|
||||||
case types.VoteTypePrevote:
|
case types.VoteTypePrevote:
|
||||||
case types.VoteTypePrecommit:
|
case types.VoteTypePrecommit:
|
||||||
ps.CatchupCommit.SetIndex(index, true)
|
ps.CatchupCommit.SetIndex(index, true)
|
||||||
log.Info("SetHasVote(CatchupCommit)", "precommits", ps.Precommits, "index", index)
|
log.Debug("SetHasVote(CatchupCommit)", "precommits", ps.Precommits, "index", index)
|
||||||
}
|
}
|
||||||
} else if ps.ProposalPOLRound == round {
|
} else if ps.ProposalPOLRound == round {
|
||||||
switch type_ {
|
switch type_ {
|
||||||
case types.VoteTypePrevote:
|
case types.VoteTypePrevote:
|
||||||
ps.ProposalPOL.SetIndex(index, true)
|
ps.ProposalPOL.SetIndex(index, true)
|
||||||
log.Info("SetHasVote(ProposalPOL)", "prevotes", ps.Prevotes, "index", index)
|
log.Debug("SetHasVote(ProposalPOL)", "prevotes", ps.Prevotes, "index", index)
|
||||||
case types.VoteTypePrecommit:
|
case types.VoteTypePrecommit:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -785,7 +785,7 @@ func (ps *PeerState) setHasVote(height int, round int, type_ byte, index int) {
|
|||||||
case types.VoteTypePrevote:
|
case types.VoteTypePrevote:
|
||||||
case types.VoteTypePrecommit:
|
case types.VoteTypePrecommit:
|
||||||
ps.LastCommit.SetIndex(index, true)
|
ps.LastCommit.SetIndex(index, true)
|
||||||
log.Info("setHasVote(LastCommit)", "lastCommit", ps.LastCommit, "index", index)
|
log.Debug("setHasVote(LastCommit)", "lastCommit", ps.LastCommit, "index", index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -66,7 +66,7 @@ func (memR *MempoolReactor) Receive(chID byte, src *p2p.Peer, msgBytes []byte) {
|
|||||||
log.Warn("Error decoding message", "error", err)
|
log.Warn("Error decoding message", "error", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("Receive", "src", src, "chId", chID, "msg", msg)
|
log.Debug("Receive", "src", src, "chId", chID, "msg", msg)
|
||||||
|
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case *TxMessage:
|
case *TxMessage:
|
||||||
|
@ -18,7 +18,7 @@ func BlockchainInfo(minHeight, maxHeight int) (*ctypes.ResultBlockchainInfo, err
|
|||||||
if minHeight == 0 {
|
if minHeight == 0 {
|
||||||
minHeight = MaxInt(1, maxHeight-20)
|
minHeight = MaxInt(1, maxHeight-20)
|
||||||
}
|
}
|
||||||
log.Info("BlockchainInfoHandler", "maxHeight", maxHeight, "minHeight", minHeight)
|
log.Debug("BlockchainInfoHandler", "maxHeight", maxHeight, "minHeight", minHeight)
|
||||||
|
|
||||||
blockMetas := []*types.BlockMeta{}
|
blockMetas := []*types.BlockMeta{}
|
||||||
for height := maxHeight; height >= minHeight; height-- {
|
for height := maxHeight; height >= minHeight; height-- {
|
||||||
|
@ -106,7 +106,7 @@ func (s *State) execBlockOnProxyApp(eventCache types.Fireable, proxyAppConn prox
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// TODO: Do something with changedValidators
|
// TODO: Do something with changedValidators
|
||||||
log.Info("TODO: Do something with changedValidators", changedValidators)
|
log.Info("TODO: Do something with changedValidators", "changedValidators", changedValidators)
|
||||||
|
|
||||||
log.Info(Fmt("ExecBlock got %v valid txs and %v invalid txs", validTxs, invalidTxs))
|
log.Info(Fmt("ExecBlock got %v valid txs and %v invalid txs", validTxs, invalidTxs))
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user