From 2424c1103bb07aa51e383bb9115151f339cc806b Mon Sep 17 00:00:00 2001 From: Cal Bera Date: Mon, 28 Aug 2023 03:22:08 -0400 Subject: [PATCH] chore: log panic recovery in runTx (#17556) --- baseapp/baseapp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 9b4faa5376ed..14f2654c51a3 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -639,6 +639,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re 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()}