Skip to content

Commit

Permalink
Include peer connection ID in recently created log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
archived-2 committed Jun 20, 2021
1 parent 227cdc1 commit d25e98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/qortal/network/Peer.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private void generateRandomMaxConnectionAge() {
// Generate a random number between the min and the max
Random random = new Random();
this.maxConnectionAge = (random.nextInt(peerConnectionTimeRange) + minPeerConnectionTime) * 1000L;
LOGGER.debug(String.format("Generated max connection age for peer %s. Min: %ds, max: %ds, range: %ds, random max: %dms", this, minPeerConnectionTime, maxPeerConnectionTime, peerConnectionTimeRange, this.maxConnectionAge));
LOGGER.debug(String.format("[%s] Generated max connection age for peer %s. Min: %ds, max: %ds, range: %ds, random max: %dms", this.peerConnectionId, this, minPeerConnectionTime, maxPeerConnectionTime, peerConnectionTimeRange, this.maxConnectionAge));

}

Expand Down

0 comments on commit d25e98d

Please sign in to comment.