Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
makramkd committed Nov 8, 2024
1 parent 82d5e14 commit 8c9b242
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions execute/observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/reader/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package reader

import (
"context"
"encoding/hex"
"errors"
"fmt"
"math/big"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8c9b242

Please sign in to comment.