diff --git a/consensus/bor/statefull/processor.go b/consensus/bor/statefull/processor.go index 88f4ade709..b2c61b89e7 100644 --- a/consensus/bor/statefull/processor.go +++ b/consensus/bor/statefull/processor.go @@ -100,6 +100,11 @@ func ApplyMessage( log.Error("message execution failed on contract", "msgData", msg.Data) } + // If there's error committing span, log it here. It won't be reported before because the return value is empty. + if bytes.Equal(msg.To().Bytes(), validatorContract.Bytes()) && err != nil { + log.Error("message execution failed on contract", "err", err) + } + // Update the state with pending changes if err != nil { state.Finalise(true)