Skip to content

p2p, eth: improve logs#2123

Merged
zzzckck merged 2 commits intobnb-chain:developfrom
weiihann:develop/logs-improve
Jan 8, 2024
Merged

p2p, eth: improve logs#2123
zzzckck merged 2 commits intobnb-chain:developfrom
weiihann:develop/logs-improve

Conversation

@weiihann
Copy link
Copy Markdown
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
Copy Markdown
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
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