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

p2p, eth: improve logs #2123

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

weiihann
Copy link
Contributor

Description

This PR improves user experience by modifying logs output, mainly on:

  1. Do not show Current status for regular nodes, only used for bootnodes
  2. Change log level for Expired request does not exist from Error to Trace

Rationale

For the 1st log change, Current status log is meant for bootnodes to monitor the discovery status. For regular nodes, the information is not useful.

For the 2nd log change, when *queue.Revoke() and *queue.expire() happen concurrently, the resulting pending pool will no longer contain the peer request. Hence, Expired request does not exist will be shown. It's not a useful log for an average user, so its log level can be changed to Trace.

Copy link
Collaborator

@zzzckck zzzckck left a comment

Choose a reason for hiding this comment

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

LGTM

@zzzckck zzzckck merged commit 7b22894 into bnb-chain:develop Jan 8, 2024
5 checks passed
weiihann added a commit to weiihann/bsc that referenced this pull request Jan 10, 2024
* p2p/discover: only show discovery status for bootnodes
* eth/downloader: uplevel expired request log
sysvm pushed a commit to sysvm/bsc that referenced this pull request Jan 22, 2024
* p2p/discover: only show discovery status for bootnodes
* eth/downloader: uplevel expired request log
@zzzckck zzzckck mentioned this pull request Jan 23, 2024
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