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

add debug logs #697

wants to merge 1 commit into from

Conversation

0xAustinWang
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Mar 9, 2025

Metric aw/ccipReaderLog main
Coverage 71.7% 71.4%

@@ -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.

@@ -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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants