Skip to content

Conversation

@jimmygchen
Copy link
Member

Issue Addressed

Add a flag to disable warning logs when gossipsub returns a Duplicate error.

The original WARN level log is useful for detecting a duplicate validator key running elsewhere. However, this may result in excessive WARN logs if the validator is broadcasting messages to multiple beacon nodes via the validator client --broadcast flag. In this case, disabling these warn logs may be useful.

When the new --disable-duplicate-warn-logs flag is present, these duplicate messages are logged at DEBUG level. This PR additional adds the topic.kind in the log message to help identify the type of duplicate message being sent.

@jimmygchen jimmygchen added the ready-for-review The code is ready for review label Dec 13, 2023
@jimmygchen jimmygchen added the v4.6.0 ETA Q1 2024 label Dec 14, 2023
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

LGTM!

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Dec 14, 2023
@jimmygchen jimmygchen merged commit 366f0d7 into sigp:unstable Dec 14, 2023
@jimmygchen jimmygchen deleted the disable-duplicate-warn-log branch December 14, 2023 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge This PR is ready to merge. v4.6.0 ETA Q1 2024

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants