From 8c9b242bc77c759e596f77718f1b727e6b2cf181 Mon Sep 17 00:00:00 2001 From: Makram Kamaleddine Date: Fri, 8 Nov 2024 19:19:43 +0400 Subject: [PATCH] add logging --- execute/observation.go | 3 +++ pkg/reader/ccip.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/execute/observation.go b/execute/observation.go index 47f8f20b1..733fea96d 100644 --- a/execute/observation.go +++ b/execute/observation.go @@ -76,6 +76,9 @@ func (p *Plugin) Observation( if err != nil { return nil, err } + + p.lggr.Infow("execute plugin got observation", "observation", observation) + return observation.Encode() } diff --git a/pkg/reader/ccip.go b/pkg/reader/ccip.go index b692caec2..d1644747e 100644 --- a/pkg/reader/ccip.go +++ b/pkg/reader/ccip.go @@ -2,6 +2,7 @@ package reader import ( "context" + "encoding/hex" "errors" "fmt" "math/big" @@ -481,6 +482,9 @@ func (r *ccipChainReader) Nonces( // pad the sender slice to 32 bytes from the left sender = slicelib.LeftPadBytes(sender, 32) + r.lggr.Infow("getting nonce for address", + "address", address, "sender", hex.EncodeToString(sender)) + var resp uint64 err = r.contractReaders[destChainSelector].ExtendedGetLatestValue( ctx,