Skip to content

Commit

Permalink
Merge pull request #3131 from christophsturm/improve-logging
Browse files Browse the repository at this point in the history
fix logging of peer address
  • Loading branch information
ripcurlx authored Aug 27, 2019
2 parents 70e304e + 31285b4 commit db823dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public void onMessage(NetworkEnvelope networkEnvelope, Connection connection) {
String extBlockId = newBlockBroadcastMessage.getBlock().getHash() + ":" + txIds;
if (!receivedBlocks.contains(extBlockId)) {
log.debug("We received a new message from peer {} and broadcast it to our peers. extBlockId={}",
connection.getPeersNodeAddressOptional(), extBlockId);
connection.getPeersNodeAddressOptional().orElse(null), extBlockId);
receivedBlocks.add(extBlockId);
broadcaster.broadcast(newBlockBroadcastMessage, networkNode.getNodeAddress(), null, false);
listeners.forEach(listener -> listener.onNewBlockReceived(newBlockBroadcastMessage));
Expand Down

0 comments on commit db823dd

Please sign in to comment.