mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Cleanup logging
This commit is contained in:
parent
c588b19074
commit
4ff4801e5c
@ -627,6 +627,10 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
||||
private void handleException(Throwable e) {
|
||||
CloseConnectionReason closeConnectionReason;
|
||||
|
||||
// silent fail if we are shutdown
|
||||
if (stopped)
|
||||
return;
|
||||
|
||||
if (e instanceof SocketException) {
|
||||
if (socket.isClosed())
|
||||
closeConnectionReason = CloseConnectionReason.SOCKET_CLOSED;
|
||||
|
@ -225,7 +225,7 @@ public abstract class NetworkNode implements MessageListener {
|
||||
}
|
||||
|
||||
public void onFailure(@NotNull Throwable throwable) {
|
||||
log.info("onFailure at sendMessage: peersNodeAddress={}\n\tmessage={}\n\tthrowable={}", peersNodeAddress, networkEnvelope.getClass().getSimpleName(), throwable.toString());
|
||||
log.debug("onFailure at sendMessage: peersNodeAddress={}\n\tmessage={}\n\tthrowable={}", peersNodeAddress, networkEnvelope.getClass().getSimpleName(), throwable.toString());
|
||||
UserThread.execute(() -> resultFuture.setException(throwable));
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user