Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug logs #697

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/reader/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ func (r *ccipChainReader) LatestMsgSeqNum(
return 0, fmt.Errorf("message invalid msg %v: %w", msg, err)
}

lggr.Debugw("chain reader returning latest message sequence number", "seqNum", msg.Message.Header.SequenceNumber)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a queried latest message from source log above that is Infow but probably should be Debugw. Maybe this can be Infow?

return msg.SequenceNumber, nil
}

Expand Down Expand Up @@ -585,6 +586,7 @@ func (r *ccipChainReader) GetExpectedNextSequenceNumber(
sourceChainSelector, r.destChain)
}

r.lggr.Debugw("chain reader returning expected next sequence number", "seqNum", expectedNextSequenceNumber)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a logger like the other methods,

lggr := logutil.WithContextValues(ctx, r.lggr)

So that we have the ocrSeqNr and ocrPhase in the log fields.

return cciptypes.SeqNum(expectedNextSequenceNumber), nil
}

Expand Down
Loading