Improve logs

This commit is contained in:
Manfred Karrer 2018-10-03 17:28:54 -05:00
parent 48fa9e75c9
commit 275286690b
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
3 changed files with 5 additions and 4 deletions

View file

@ -90,7 +90,7 @@ public class BlindVoteValidator {
String txId = blindVote.getTxId(); String txId = blindVote.getTxId();
Optional<Tx> optionalTx = bsqStateService.getTx(txId); Optional<Tx> optionalTx = bsqStateService.getTx(txId);
if (!optionalTx.isPresent()) { if (!optionalTx.isPresent()) {
log.warn("Tx is not in bsqStateService. blindVoteTxId={}", txId); log.debug("Tx is not in bsqStateService. blindVoteTxId={}", txId);
return false; return false;
} }
@ -100,7 +100,7 @@ public class BlindVoteValidator {
return false; return false;
} }
if (!periodService.isTxInPhase(txId, DaoPhase.Phase.BLIND_VOTE)) { if (!periodService.isTxInPhase(txId, DaoPhase.Phase.BLIND_VOTE)) {
log.warn("Tx is not in BLIND_VOTE phase. blindVote={}", blindVote); log.debug("Tx is not in BLIND_VOTE phase. blindVote={}", blindVote);
return false; return false;
} }
return true; return true;

View file

@ -228,7 +228,7 @@ public class ProposalService implements HashMapChangedListener, AppendOnlyDataSt
log.info("We received a TempProposalPayload and store it to our protectedStoreList. proposalTxId={}", log.info("We received a TempProposalPayload and store it to our protectedStoreList. proposalTxId={}",
proposal.getTxId()); proposal.getTxId());
} else { } else {
log.warn("We received an invalid proposal from the P2P network. Proposal.txId={}, blockHeight={}", log.debug("We received an invalid proposal from the P2P network. Proposal.txId={}, blockHeight={}",
proposal.getTxId(), bsqStateService.getChainHeight()); proposal.getTxId(), bsqStateService.getChainHeight());
} }
} }

View file

@ -178,7 +178,8 @@ public class RequestBlocksHandler implements MessageListener {
"RequestDataHandler.onMessage: connection.getPeersNodeAddressOptional() must be present " + "RequestDataHandler.onMessage: connection.getPeersNodeAddressOptional() must be present " +
"at that moment"); "at that moment");
cleanup(); cleanup();
log.info("We received from peer {} a {}", nodeAddress.getFullAddress(), getBlocksResponse); log.info("We received from peer {} a BlocksResponse with {} blocks",
nodeAddress.getFullAddress(), getBlocksResponse.getBlocks().size());
listener.onComplete(getBlocksResponse); listener.onComplete(getBlocksResponse);
} else { } else {
log.warn("Nonce not matching. That can happen rarely if we get a response after a canceled " + log.warn("Nonce not matching. That can happen rarely if we get a response after a canceled " +