mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Improve logs
This commit is contained in:
parent
48fa9e75c9
commit
275286690b
3 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 " +
|
||||||
|
|
Loading…
Add table
Reference in a new issue