mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Change log level to make it more clear how long it takes for creating
a network connection.
This commit is contained in:
parent
25b22e7a24
commit
6cd852631f
@ -132,10 +132,8 @@ public abstract class NetworkNode implements MessageListener {
|
||||
}
|
||||
Socket socket = createSocket(peersNodeAddress);
|
||||
long duration = System.currentTimeMillis() - startTs;
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Socket creation to peersNodeAddress {} took {} ms", peersNodeAddress.getFullAddress(),
|
||||
duration);
|
||||
}
|
||||
log.info("Socket creation to peersNodeAddress {} took {} ms", peersNodeAddress.getFullAddress(),
|
||||
duration);
|
||||
|
||||
if (duration > CREATE_SOCKET_TIMEOUT)
|
||||
throw new TimeoutException("A timeout occurred when creating a socket.");
|
||||
|
Loading…
Reference in New Issue
Block a user