mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +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();
|
||||
Optional<Tx> optionalTx = bsqStateService.getTx(txId);
|
||||
if (!optionalTx.isPresent()) {
|
||||
log.warn("Tx is not in bsqStateService. blindVoteTxId={}", txId);
|
||||
log.debug("Tx is not in bsqStateService. blindVoteTxId={}", txId);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class BlindVoteValidator {
|
|||
return false;
|
||||
}
|
||||
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 true;
|
||||
|
|
|
@ -228,7 +228,7 @@ public class ProposalService implements HashMapChangedListener, AppendOnlyDataSt
|
|||
log.info("We received a TempProposalPayload and store it to our protectedStoreList. proposalTxId={}",
|
||||
proposal.getTxId());
|
||||
} 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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -178,7 +178,8 @@ public class RequestBlocksHandler implements MessageListener {
|
|||
"RequestDataHandler.onMessage: connection.getPeersNodeAddressOptional() must be present " +
|
||||
"at that moment");
|
||||
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);
|
||||
} else {
|
||||
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