From d71a261092010e2bf2f34178a055ed7ae8e88875 Mon Sep 17 00:00:00 2001 From: Harry Kalodner Date: Thu, 2 Jun 2022 15:28:54 -0400 Subject: [PATCH] Fix block tracing error message --- packages/arb-rpc-node/web3/trace.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/arb-rpc-node/web3/trace.go b/packages/arb-rpc-node/web3/trace.go index 2f6bc680a7..1f0c58d39e 100644 --- a/packages/arb-rpc-node/web3/trace.go +++ b/packages/arb-rpc-node/web3/trace.go @@ -435,14 +435,14 @@ func (t *Trace) block(ctx context.Context, blockNum rpc.BlockNumberOrHash, trace res := make([]*rawTxTrace, 0, len(txResults)) for i := uint64(0); i < blockLog.BlockStats.TxCount.Uint64(); i++ { txRes := txResults[i] - failMsg := logger. - Warn(). - Uint64("block", blockInfo.Header.Number.Uint64()). - Str("txhash", txRes.IncomingRequest.MessageID.String()). - Err(err) txTrace, err := t.traceTransaction(ctx, cursor, txRes, logIndex, traceDestroyed) if err != nil { - failMsg.Msg("error getting trace for transaction") + logger. + Warn(). + Uint64("block", blockInfo.Header.Number.Uint64()). + Str("txhash", txRes.IncomingRequest.MessageID.String()). + Err(err). + Msg("error getting trace for transaction") continue } res = append(res, txTrace)