From edbde29bf151c52b41af909e8e77367a5adc8afb Mon Sep 17 00:00:00 2001 From: george-dorin Date: Thu, 28 Nov 2024 13:29:17 +0200 Subject: [PATCH] Add debug logging --- core/services/relay/evm/dual_contract_transmitter.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/services/relay/evm/dual_contract_transmitter.go b/core/services/relay/evm/dual_contract_transmitter.go index 656270939fe..86d7d38be2e 100644 --- a/core/services/relay/evm/dual_contract_transmitter.go +++ b/core/services/relay/evm/dual_contract_transmitter.go @@ -71,7 +71,7 @@ func NewOCRDualContractTransmitter( transmittedEventSig: transmitted.ID, lp: lp, contractReader: caller, - lggr: logger.Named(lggr, "OCRContractTransmitter"), + lggr: logger.Named(lggr, "OCRDualContractTransmitter"), transmitterOptions: &transmitterOps{ reportToEvmTxMeta: reportToEvmTxMetaNoop, excludeSigs: false, @@ -125,7 +125,9 @@ func (oc *dualContractTransmitter) Transmit(ctx context.Context, reportCtx ocrty return errors.Wrap(err, "abi.Pack failed") } - transactionErr := errors.Wrap(oc.transmitter.CreateEthTransaction(ctx, oc.contractAddress, payload, txMeta), "failed to send Eth transaction") + transactionErr := errors.Wrap(oc.transmitter.CreateEthTransaction(ctx, oc.contractAddress, payload, txMeta), "failed to send primary Eth transaction") + + oc.lggr.Debugw("Created primary transaction", "error", transactionErr) // Secondary transmission secondaryPayload, err := oc.dualTransmissionABI.Pack("transmitSecondary", rawReportCtx, []byte(report), rs, ss, vs) @@ -134,7 +136,7 @@ func (oc *dualContractTransmitter) Transmit(ctx context.Context, reportCtx ocrty } err = errors.Wrap(oc.transmitter.CreateSecondaryEthTransaction(ctx, secondaryPayload, txMeta), "failed to send secondary Eth transaction") - + oc.lggr.Debugw("Created secondary transaction", "error", err) return errors2.Join(transactionErr, err) }