Skip to content

Commit

Permalink
Remove full method path and line breaks from messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Oct 30, 2023
1 parent d50a43e commit c829cd0
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 116 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public InetSocketAddress getAddress() {
@Override
public String toString() {
return new ToStringBuilder(this)
.append("message", this.message.toString())
.append("address", this.address.toString())
.append("message", this.message)
.append("address", this.address)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ public class NodeChallengeManager {
private Map<String, NodeChallenge> activeChallenges = new ConcurrentHashMap<>();

public NodeChallenge startChallenge(Node challengedNode, Node challenger, PeerExplorer explorer) {
logger.debug("co.rsk.net.discovery.NodeChallengeManager.startChallenge - Starting challenge for node:\n" +
"challengedNode: {}\n" +
"challenger: {}", challengedNode.toString(), challenger.toString());
logger.debug("startChallenge - Starting challenge for node: [{}] by challenger: [{}]", challengedNode.toString(), challenger.toString());

PingPeerMessage pingMessage = explorer.sendPing(challengedNode.getAddress(), 1, challengedNode);
String messageId = pingMessage.getMessageId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public boolean hasExpired() {
public String toString() {
return new ToStringBuilder(this)
.append("messageId", this.messageId)
.append("message", this.message.toString())
.append("address", this.address.toString())
.append("relatedNode", this.relatedNode == null ? null : this.relatedNode.toString())
.append("message", this.message)
.append("address", this.address)
.append("relatedNode", this.relatedNode)
.toString();
}
}
Loading

0 comments on commit c829cd0

Please sign in to comment.