Skip to content

Conversation

@ogtownsend
Copy link
Contributor

@ogtownsend ogtownsend commented Dec 3, 2025

  • Log which configs were fetched freshly from chain in debug mode
  • This is a big log but will help significantly improve debugging discovery related issues which can cause multiple downstream issues

@ogtownsend ogtownsend marked this pull request as ready for review December 3, 2025 18:47
@ogtownsend ogtownsend requested a review from a team as a code owner December 3, 2025 18:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds logging of freshly fetched configuration data from the config poller. The change enhances the debug logging output to include the actual configuration snapshots that were retrieved during the batch refresh operation.

  • Added chainConfigSnapshot and sourceChainConfigs to debug log output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

c.lggr.Debugw("Batch refreshed configs via chainAccessor",
"chain", chainSel,
"latency", time.Since(start),
"chainConfigSnapshot", chainConfigSnapshot,
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

Logging potentially sensitive configuration data at debug level could expose internal system details in production logs. Consider whether this data contains sensitive information (API keys, private endpoints, etc.) that should not be logged, or restrict this logging to trace level instead of debug level.

Suggested change
"chainConfigSnapshot", chainConfigSnapshot,
"chainConfigSnapshot", chainConfigSnapshot,
)
c.lggr.Tracew("Batch refreshed sourceChainConfigs via chainAccessor",
"chain", chainSel,

Copilot uses AI. Check for mistakes.
tt-cll
tt-cll previously approved these changes Dec 3, 2025
amit-momin
amit-momin previously approved these changes Dec 3, 2025
@ogtownsend ogtownsend enabled auto-merge December 3, 2025 21:36
@ogtownsend ogtownsend dismissed stale reviews from amit-momin and tt-cll via fba7d4c December 3, 2025 21:46
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Metric ogt/log-configs-fetched-config-poller main
Coverage 70.3% 69.7%

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.

3 participants