mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-03 18:56:59 +01:00
Reduce log level
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
4888ae15ea
commit
7a147ff9e8
3 changed files with 6 additions and 9 deletions
|
@ -609,13 +609,11 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
||||||
|
|
||||||
if (numRuleViolations >= ruleViolation.maxTolerance) {
|
if (numRuleViolations >= ruleViolation.maxTolerance) {
|
||||||
log.warn("We close connection as we received too many corrupt requests. " +
|
log.warn("We close connection as we received too many corrupt requests. " +
|
||||||
"numRuleViolations={} " +
|
"ruleViolations={} " +
|
||||||
"corruptRequest={} " +
|
"connection with address{} and uid {}", ruleViolations, peersNodeAddressProperty, uid);
|
||||||
"corruptRequests={} " +
|
|
||||||
"connection with address{} and uid {}", numRuleViolations, ruleViolation, ruleViolations, this.getPeersNodeAddressProperty(), this.getUid());
|
|
||||||
this.ruleViolation = ruleViolation;
|
this.ruleViolation = ruleViolation;
|
||||||
if (ruleViolation == RuleViolation.PEER_BANNED) {
|
if (ruleViolation == RuleViolation.PEER_BANNED) {
|
||||||
log.warn("We close connection due RuleViolation.PEER_BANNED. peersNodeAddress={}", getPeersNodeAddressOptional());
|
log.debug("We close connection due RuleViolation.PEER_BANNED. peersNodeAddress={}", getPeersNodeAddressOptional());
|
||||||
shutDown(CloseConnectionReason.PEER_BANNED);
|
shutDown(CloseConnectionReason.PEER_BANNED);
|
||||||
} else if (ruleViolation == RuleViolation.INVALID_CLASS) {
|
} else if (ruleViolation == RuleViolation.INVALID_CLASS) {
|
||||||
log.warn("We close connection due RuleViolation.INVALID_CLASS");
|
log.warn("We close connection due RuleViolation.INVALID_CLASS");
|
||||||
|
@ -759,7 +757,7 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
long elapsed = now - lastReadTimeStamp;
|
long elapsed = now - lastReadTimeStamp;
|
||||||
if (elapsed < 10) {
|
if (elapsed < 10) {
|
||||||
log.info("We got 2 network_messages received in less than 10 ms. We set the thread to sleep " +
|
log.debug("We got 2 network_messages received in less than 10 ms. We set the thread to sleep " +
|
||||||
"for 20 ms to avoid getting flooded by our peer. lastReadTimeStamp={}, now={}, elapsed={}",
|
"for 20 ms to avoid getting flooded by our peer. lastReadTimeStamp={}, now={}, elapsed={}",
|
||||||
lastReadTimeStamp, now, elapsed);
|
lastReadTimeStamp, now, elapsed);
|
||||||
Thread.sleep(20);
|
Thread.sleep(20);
|
||||||
|
@ -839,7 +837,6 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
||||||
if (networkEnvelope instanceof SendersNodeAddressMessage) {
|
if (networkEnvelope instanceof SendersNodeAddressMessage) {
|
||||||
boolean isValid = processSendersNodeAddressMessage((SendersNodeAddressMessage) networkEnvelope);
|
boolean isValid = processSendersNodeAddressMessage((SendersNodeAddressMessage) networkEnvelope);
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
log.warn("Received invalid {}", networkEnvelope.getClass().getSimpleName());
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,7 +234,7 @@ public final class PeerManager implements ConnectionListener, PersistedDataHost
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
||||||
log.info("onDisconnect called: nodeAddress={}, closeConnectionReason={}",
|
log.debug("onDisconnect called: nodeAddress={}, closeConnectionReason={}",
|
||||||
connection.getPeersNodeAddressOptional(), closeConnectionReason);
|
connection.getPeersNodeAddressOptional(), closeConnectionReason);
|
||||||
handleConnectionFault(connection);
|
handleConnectionFault(connection);
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ public class PeerExchangeManager implements MessageListener, ConnectionListener,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
public void onDisconnect(CloseConnectionReason closeConnectionReason, Connection connection) {
|
||||||
log.info("onDisconnect closeConnectionReason={}, nodeAddressOpt={}", closeConnectionReason, connection.getPeersNodeAddressOptional());
|
log.debug("onDisconnect closeConnectionReason={}, nodeAddressOpt={}", closeConnectionReason, connection.getPeersNodeAddressOptional());
|
||||||
closeHandler(connection);
|
closeHandler(connection);
|
||||||
|
|
||||||
if (retryTimer == null) {
|
if (retryTimer == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue