Skip to content

Commit 361b96a

Browse files
Merge pull request #538 from terra-money/log/add-more-logs
added more logs
2 parents 5193d8a + 31327c7 commit 361b96a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

baseapp/abci_utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan
150150
for _, txBytes := range req.Txs {
151151
tx, err := h.txVerifier.ProcessProposalVerifyTx(txBytes)
152152
if err != nil {
153+
ctx.Logger().Error("proposal failed on ProcessProposalVerifyTx", "error", err)
153154
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}
154155
}
155156

@@ -160,6 +161,7 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan
160161
}
161162

162163
if totalTxGas > uint64(maxBlockGas) {
164+
ctx.Logger().Error("proposal failed on totalTxGas > maxBlockGas", "totalTxGas", totalTxGas, "maxBlockGas", maxBlockGas)
163165
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}
164166
}
165167
}

0 commit comments

Comments
 (0)