Skip to content

Commit

Permalink
Improve logs
Browse files Browse the repository at this point in the history
Cleanups
  • Loading branch information
chimp1984 committed Dec 28, 2020
1 parent 7685416 commit 1fc8905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/bisq/core/dao/node/BsqNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ protected Optional<Block> doParseBlock(RawBlock rawBlock) throws RequiredReorgFr
try {
Block block = blockParser.parseBlock(rawBlock);

if (pendingBlocks.contains(rawBlock))
pendingBlocks.remove(rawBlock);
pendingBlocks.remove(rawBlock);

// After parsing we check if we have pending blocks we might have received earlier but which have been
// not connecting from the latest height we had. The list is sorted by height
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void onFailure(@NotNull Throwable throwable) {
log.error(errorMessage);
handleFault(errorMessage, nodeAddress, CloseConnectionReason.SEND_MSG_FAILURE);
} else {
log.trace("We have stopped already. We ignore that networkNode.sendMessage.onFailure call.");
log.warn("We have stopped already. We ignore that networkNode.sendMessage.onFailure call.");
}
}
}, MoreExecutors.directExecutor());
Expand All @@ -175,7 +175,7 @@ public void onMessage(NetworkEnvelope networkEnvelope, Connection connection) {
// have the address set. As we check the nonce later we do not care that much for the check if the
// connection address is the same as the one we used.
} else if (!optionalNodeAddress.get().equals(nodeAddress)) {
log.warn("Peers node address is the same we requested. We ignore that message.");
log.warn("Peers node address is not the same we used for the request. This is not expected. We ignore that message.");
return;
}

Expand Down

0 comments on commit 1fc8905

Please sign in to comment.