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
e4c8c8eb75
commit
e292cab799
1 changed files with 2 additions and 2 deletions
|
@ -200,13 +200,13 @@ public abstract class NetworkNode implements MessageListener {
|
|||
}
|
||||
});
|
||||
|
||||
Futures.addCallback(future, new FutureCallback<Connection>() {
|
||||
Futures.addCallback(future, new FutureCallback<>() {
|
||||
public void onSuccess(Connection connection) {
|
||||
UserThread.execute(() -> resultFuture.set(connection));
|
||||
}
|
||||
|
||||
public void onFailure(@NotNull Throwable throwable) {
|
||||
log.info("onFailure at sendMessage: peersNodeAddress=" + peersNodeAddress + "\n\tmessage=" + Utilities.toTruncatedString(networkEnvelope));
|
||||
log.info("onFailure at sendMessage: peersNodeAddress={}\n\tmessage={}\n\tthrowable={}", peersNodeAddress, networkEnvelope.getClass().getSimpleName(), throwable.toString());
|
||||
UserThread.execute(() -> resultFuture.setException(throwable));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue