diff --git a/src/dorkbox/network/Client.java b/src/dorkbox/network/Client.java index f96eb869..b95ddc69 100644 --- a/src/dorkbox/network/Client.java +++ b/src/dorkbox/network/Client.java @@ -72,6 +72,9 @@ class Client extends EndPointClient implements Connecti return "2.0"; } + private final String localChannelName; + private final String hostName; + /** * Starts a LOCAL only client, with the default local channel name and serialization scheme */ @@ -107,6 +110,9 @@ class Client extends EndPointClient implements Connecti throw new IllegalArgumentException(msg); } + localChannelName = options.localChannelName; + hostName = options.host; + boolean isAndroid = PlatformDependent.isAndroid(); if (isAndroid && options.udtPort > 0) { @@ -314,6 +320,13 @@ class Client extends EndPointClient implements Connecti synchronized (this.shutdownInProgress) { } + if (localChannelName != null) { + logger.info("Connecting to local server: {}", localChannelName); + } + else { + logger.info("Connecting to server: {}", hostName); + } + // have to start the registration process this.connectingBootstrap.set(0); registerNextProtocol();