Skip to content

Improve Peer Logging#6831

Closed
siladu wants to merge 4 commits intobesu-eth:mainfrom
siladu:exploratory-peer-logging
Closed

Improve Peer Logging#6831
siladu wants to merge 4 commits intobesu-eth:mainfrom
siladu:exploratory-peer-logging

Conversation

@siladu
Copy link
Copy Markdown
Contributor

@siladu siladu commented Mar 28, 2024

Signed-off-by: Simon Dudley simon.dudley@consensys.net

PR description

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu changed the title Print peer that had use response or timeout Exploratory Peer Logging Mar 28, 2024
jframe and others added 2 commits March 28, 2024 13:36
Signed-off-by: Jason Frame <jason.frame@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@siladu siladu marked this pull request as ready for review March 28, 2024 04:18
@siladu siladu changed the title Exploratory Peer Logging Improve Peer Logging Mar 28, 2024
if (uselessResponseTimes.size() >= USELESS_RESPONSE_THRESHOLD) {
score -= LARGE_ADJUSTMENT;
LOG.debug("Disconnection triggered by exceeding useless response threshold");
LOG.warn(
Copy link
Copy Markdown
Contributor

@gfukushima gfukushima Mar 28, 2024

Choose a reason for hiding this comment

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

Did you mean to change this to warn level? Isn't this going to spam the logs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good spot

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@macfarla
Copy link
Copy Markdown
Contributor

closing this as I've combined this with #6924

@macfarla macfarla closed this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants