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

Improve logging. #13708

Merged
merged 3 commits into from
Mar 8, 2024
Merged

Improve logging. #13708

merged 3 commits into from
Mar 8, 2024

Conversation

nalepae
Copy link
Contributor

@nalepae nalepae commented Mar 8, 2024

What type of PR is this?
Other

This PR has two commits:

  • The first one fix logs
  • The second one fixes (unrelated) deepsource errors.

@nalepae nalepae requested a review from a team as a code owner March 8, 2024 10:30
@nalepae nalepae force-pushed the fix-logs branch 2 times, most recently from 30c95a5 to ab8ed56 Compare March 8, 2024 10:42
"activePeers": len(s.peers.Active()),
"inbound": len(s.peers.InboundConnected()),
"outbound": len(s.peers.OutboundConnected()),
"active": len(s.peers.Active()),
Copy link
Contributor

Choose a reason for hiding this comment

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

This may break some scripts, any reasons to change? Although I agree it's a change for the better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No reason appart redundancy and consistency.

The log is:

INFO p2p: Peer summary activePeers=10 inbound=0 outbound=9

We already know that peers are the items being active since the log itself if Peer summary.

Also to be consistent, we would have either:

INFO p2p: Peer summary activePeers=10 inboundPeers=0 outboundPeers=9

or

INFO p2p: Peer summary active =10 inbound=0 outbound=9

But ok for scripts break, I'll fix.

@nalepae nalepae enabled auto-merge March 8, 2024 12:02
@nalepae nalepae added this pull request to the merge queue Mar 8, 2024
Merged via the queue into develop with commit b2e3c29 Mar 8, 2024
17 checks passed
@nalepae nalepae deleted the fix-logs branch March 8, 2024 12:30
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.

2 participants