From 14c36ac0dd4f17485c2b032a4ba5583e2f198d6e Mon Sep 17 00:00:00 2001 From: Jeremy Letang Date: Fri, 17 May 2024 18:45:43 +0200 Subject: [PATCH] chore: add logs in datasource ethcall Signed-off-by: Jeremy Letang --- core/datasource/external/ethcall/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/datasource/external/ethcall/engine.go b/core/datasource/external/ethcall/engine.go index 8a633ce28e1..be731d0e70d 100644 --- a/core/datasource/external/ethcall/engine.go +++ b/core/datasource/external/ethcall/engine.go @@ -321,7 +321,7 @@ func (e *Engine) Poll(ctx context.Context, wallTime time.Time) { if call.triggered(prevEthBlock, nextEthBlockIsh) { res, err := call.Call(ctx, e.client, nextEthBlock.Number.Uint64()) if err != nil { - e.log.Error("failed to call contract", logging.Error(err), logging.Uint64("chain-id", e.chainID.Load())) + e.log.Error("failed to call contract", logging.Error(err), logging.String("spec-id", specID), logging.Uint64("chain-id", e.chainID.Load())) event := makeErrorChainEvent(err.Error(), specID, nextEthBlockIsh, e.chainID.Load()) e.forwarder.ForwardFromSelf(event) e.lastSent = nextEthBlockIsh