NioClientManager: reduce logging for the happy path

It's up to higher-level classes like Peer to provide reasonable logging
for successful connections.
This commit is contained in:
Andreas Schildbach 2025-02-13 11:59:01 +01:00
parent 9e143a919e
commit 9bf97c997b

View file

@ -73,7 +73,7 @@ public class NioClientManager extends AbstractExecutionThreadService implements
ConnectionHandler handler = new ConnectionHandler(connection, key, connectedHandlers);
try {
if (sc.finishConnect()) {
log.info("Connected to {}", sc.socket().getRemoteSocketAddress());
log.debug("Connected to {}", sc.socket().getRemoteSocketAddress());
key.interestOps((key.interestOps() | SelectionKey.OP_READ) & ~SelectionKey.OP_CONNECT).attach(handler);
connection.connectionOpened();
data.future.complete(data.address);