-
Notifications
You must be signed in to change notification settings - Fork 78
[Chore] Detailed logging of the handshaked peers #719
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
Conversation
| override def toString: String = | ||
| s"PeerNetworkStatus {" + | ||
| s" RemotePeerAddress: ${peer.remoteAddress}," + | ||
| s" ConnectionDirection: ${if (peer.incomingConnection) "Incoming" else "OutGoing"}," + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: typo: Outgoing
| peer, | ||
| isBlacklisted = isBlacklisted(peer.id) | ||
| ) | ||
| log.debug(s"${peer.id} - $peerNetworkStatus") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to put everything in one log msg. It will be easier to debug (when we will have structured logging) to have the whole list in one log entry
mmrozek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment only. LGTM
| peersToDownloadFrom.size | ||
| ) | ||
|
|
||
| val handshakedPeersStatus = handshakedPeers.map { case (peer, info) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: should be lazy to avoid evaluation when we work with INFO level of logging
Description
More in detail logging of all the handshaked peers a node is connected to