Skip to content

Commit

Permalink
Merge pull request #2217 from rsksmart/rc600-master-merge
Browse files Browse the repository at this point in the history
RC-600 -> master merge
  • Loading branch information
Vovchyk authored Dec 20, 2023
2 parents bee7f04 + 3c4f4b6 commit f424db2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private void handlePong(InetSocketAddress pongAddress, PongPeerMessage message)
this.addConnection(message, request.getAddress().getHostString(), request.getAddress().getPort());
}
} else {
logger.warn("handlePong - Peer discovery request with id [{}] is either null or invalid", message.getMessageId());
logger.debug("handlePong - Peer discovery request with id [{}] is either null or invalid", message.getMessageId());
}
}

Expand All @@ -254,7 +254,7 @@ private void handleFindNode(FindNodePeerMessage message) {
this.sendNeighbors(connectedNode.getAddress(), nodesToSend, message.getMessageId());
updateEntry(connectedNode);
} else {
logger.warn("handleFindNode - Node with id: [{}] is not connected. Ignored", nodeId);
logger.debug("handleFindNode - Node with id: [{}] is not connected. Ignored", nodeId);
}
}

Expand Down Expand Up @@ -282,7 +282,7 @@ private void handleNeighborsMessage(InetSocketAddress neighborsResponseAddress,
}
updateEntry(connectedNode);
} else {
logger.warn("handleFindNode - Node with id: [{}] is not connected. Ignored", nodeId);
logger.debug("handleNeighborsMessage - Node with id: [{}] is not connected. Ignored", nodeId);
}
}

Expand All @@ -298,7 +298,7 @@ synchronized PingPeerMessage sendPing(InetSocketAddress nodeAddress, int attempt
PingPeerMessage nodeMessage = checkPendingPeerToAddress(nodeAddress);

if (nodeMessage != null) {
logger.warn("sendPing - No ping message has been sent to address: [{}/{}], as there's pending one", nodeAddress.getHostName(), nodeAddress.getPort());
logger.trace("sendPing - No ping message has been sent to address: [{}/{}], as there's pending one", nodeAddress.getHostName(), nodeAddress.getPort());

return nodeMessage;
}
Expand Down
2 changes: 2 additions & 0 deletions rskj-core/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
<logger name="btcBlockStore" level="INFO" />
<logger name="secp256k1" level="INFO" />
<logger name="altbn128" level="INFO" />
<logger name="co.rsk.net.discovery.PeerExplorer" level="INFO" />
<logger name="co.rsk.net.discovery.NodeChallengeManager" level="INFO" />

<!-- Use INFO or upper levels for production environments. -->
<logger name="com.googlecode.jsonrpc4j" level="INFO" />
Expand Down

0 comments on commit f424db2

Please sign in to comment.