Reduced log levels

This commit is contained in:
Istvan Szabo 2021-05-27 10:48:17 +01:00
parent 8a828137ee
commit 06215c83f2

View File

@ -662,9 +662,9 @@ public class Network {
// Notify Controller // Notify Controller
Controller.getInstance().onPeerDisconnect(peer); Controller.getInstance().onPeerDisconnect(peer);
if (peer.getConnectionEstablishedTime() > 0L) { if (peer.getConnectionEstablishedTime() > 0L) {
LOGGER.info("[{}] Disconnected from peer {}", peer.getPeerConnectionId(), peer); LOGGER.debug("[{}] Disconnected from peer {}", peer.getPeerConnectionId(), peer);
} else { } else {
LOGGER.warn("[{}] Failed to connect to peer {}", peer.getPeerConnectionId(), peer); LOGGER.debug("[{}] Failed to connect to peer {}", peer.getPeerConnectionId(), peer);
} }
synchronized (this.connectedPeers) { synchronized (this.connectedPeers) {
@ -817,7 +817,7 @@ public class Network {
} }
protected void onHandshakeCompleted(Peer peer) { protected void onHandshakeCompleted(Peer peer) {
LOGGER.info("[{}] Handshake completed with peer {} on {}", peer.getPeerConnectionId(), peer, LOGGER.debug("[{}] Handshake completed with peer {} on {}", peer.getPeerConnectionId(), peer,
peer.getPeersVersionString()); peer.getPeersVersionString());
// Are we already connected to this peer? // Are we already connected to this peer?