Skip to content

Commit

Permalink
chore: log panic recovery in runTx (#17556)
Browse files Browse the repository at this point in the history
(cherry picked from commit cc6511e)
  • Loading branch information
calbera authored and mergify[bot] committed Aug 28, 2023
1 parent 992c164 commit 5d354bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ func (app *BaseApp) runTx(mode execMode, txBytes []byte) (gInfo sdk.GasInfo, res
if r := recover(); r != nil {
recoveryMW := newOutOfGasRecoveryMiddleware(gasWanted, ctx, app.runTxRecoveryMiddleware)
err, result = processRecovery(r, recoveryMW), nil
ctx.Logger().Error("panic recovered in runTx", "err", err)
}

gInfo = sdk.GasInfo{GasWanted: gasWanted, GasUsed: ctx.GasMeter().GasConsumed()}
Expand Down

0 comments on commit 5d354bc

Please sign in to comment.