mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 06:35:17 +01:00
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:
parent
9e143a919e
commit
9bf97c997b
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class NioClientManager extends AbstractExecutionThreadService implements
|
||||||
ConnectionHandler handler = new ConnectionHandler(connection, key, connectedHandlers);
|
ConnectionHandler handler = new ConnectionHandler(connection, key, connectedHandlers);
|
||||||
try {
|
try {
|
||||||
if (sc.finishConnect()) {
|
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);
|
key.interestOps((key.interestOps() | SelectionKey.OP_READ) & ~SelectionKey.OP_CONNECT).attach(handler);
|
||||||
connection.connectionOpened();
|
connection.connectionOpened();
|
||||||
data.future.complete(data.address);
|
data.future.complete(data.address);
|
||||||
|
|
Loading…
Add table
Reference in a new issue