Skip to content

Commit

Permalink
Change message levels
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyilong committed Apr 10, 2021
1 parent dd1f9f9 commit 26a6aec
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions consensus/guardian.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (g *GuardianEngine) validateVote(vote *core.AggregatedVotes) (res bool) {
"local.round": g.round,
"vote.block": vote.Block.Hex(),
"vote.Mutiplies": vote.Multiplies,
}).Info("Ignoring guardian vote: local not ready")
}).Debug("Ignoring guardian vote: local not ready")
return
}
if vote.Block != g.block {
Expand All @@ -237,7 +237,7 @@ func (g *GuardianEngine) validateVote(vote *core.AggregatedVotes) (res bool) {
"local.round": g.round,
"vote.block": vote.Block.Hex(),
"vote.Mutiplies": vote.Multiplies,
}).Info("Ignoring guardian vote: block hash does not match with local candidate")
}).Debug("Ignoring guardian vote: block hash does not match with local candidate")
return
}
if vote.Gcp != g.gcpHash {
Expand All @@ -248,7 +248,7 @@ func (g *GuardianEngine) validateVote(vote *core.AggregatedVotes) (res bool) {
"vote.Mutiplies": vote.Multiplies,
"vote.gcp": vote.Gcp.Hex(),
"local.gcp": g.gcpHash.Hex(),
}).Info("Ignoring guardian vote: gcp hash does not match with local value")
}).Debug("Ignoring guardian vote: gcp hash does not match with local value")
return
}
if !g.checkMultipliesForRound(vote, g.round) {
Expand All @@ -259,7 +259,7 @@ func (g *GuardianEngine) validateVote(vote *core.AggregatedVotes) (res bool) {
"vote.Mutiplies": vote.Multiplies,
"vote.gcp": vote.Gcp.Hex(),
"local.gcp": g.gcpHash.Hex(),
}).Info("Ignoring guardian vote: mutiplies exceed limit for round")
}).Debug("Ignoring guardian vote: mutiplies exceed limit for round")
return
}
if result := vote.Validate(g.gcp); result.IsError() {
Expand All @@ -271,7 +271,7 @@ func (g *GuardianEngine) validateVote(vote *core.AggregatedVotes) (res bool) {
"vote.gcp": vote.Gcp.Hex(),
"local.gcp": g.gcpHash.Hex(),
"error": result.Message,
}).Info("Ignoring guardian vote: invalid vote")
}).Debug("Ignoring guardian vote: invalid vote")
return
}
res = true
Expand Down
2 changes: 1 addition & 1 deletion ledger/execution/tx_deposit_stake.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (exec *DepositStakeExecutor) sanityCheck(chainID string, view *st.StoreView
signBytes := tx.SignBytes(chainID)
res = validateInputAdvanced(sourceAccount, signBytes, tx.Source)
if res.IsError() {
logger.Warnf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
logger.Debugf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
return res
}

Expand Down
2 changes: 1 addition & 1 deletion ledger/execution/tx_release_fund.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (exec *ReleaseFundTxExecutor) sanityCheck(chainID string, view *st.StoreVie
signBytes := tx.SignBytes(chainID)
res = validateInputAdvanced(sourceAccount, signBytes, tx.Source)
if res.IsError() {
logger.Warnf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
logger.Debugf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
return res
}

Expand Down
2 changes: 1 addition & 1 deletion ledger/execution/tx_reserve_fund.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (exec *ReserveFundTxExecutor) sanityCheck(chainID string, view *st.StoreVie
signBytes := tx.SignBytes(chainID)
res = validateInputAdvanced(sourceAccount, signBytes, tx.Source)
if res.IsError() {
logger.Warnf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
logger.Debugf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
return res
}

Expand Down
2 changes: 1 addition & 1 deletion ledger/execution/tx_smart_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (exec *SmartContractTxExecutor) sanityCheck(chainID string, view *st.StoreV
signBytes := tx.SignBytes(chainID)
res = validateInputAdvanced(fromAccount, signBytes, tx.From)
if res.IsError() {
logger.Warnf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.From.Address.Hex(), res))
logger.Debugf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.From.Address.Hex(), res))
return res
}

Expand Down
2 changes: 1 addition & 1 deletion ledger/execution/tx_withdraw_stake.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (exec *WithdrawStakeExecutor) sanityCheck(chainID string, view *st.StoreVie
signBytes := tx.SignBytes(chainID)
res = validateInputAdvanced(sourceAccount, signBytes, tx.Source)
if res.IsError() {
logger.Warnf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
logger.Debugf(fmt.Sprintf("validateSourceAdvanced failed on %v: %v", tx.Source.Address.Hex(), res))
return res
}

Expand Down

0 comments on commit 26a6aec

Please sign in to comment.