Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
don't log peer as optional [....onion]
  • Loading branch information
christophsturm committed Aug 23, 2019
1 parent 0d9d1bd commit 31285b4
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 31285b4

Please sign in to comment.