1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Add log statements around socket.connect() of XMPPTCPConnection

This commit is contained in:
Florian Schmaus 2015-01-04 16:03:46 +01:00
parent a24c813ed1
commit c770b12348

View file

@ -519,12 +519,14 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
else { else {
socket = config.getSocketFactory().createSocket(); socket = config.getSocketFactory().createSocket();
} }
LOGGER.finer("Trying to establish TCP connection to " + host + " at port " + port);
try { try {
socket.connect(new InetSocketAddress(host, port), config.getConnectTimeout()); socket.connect(new InetSocketAddress(host, port), config.getConnectTimeout());
} catch (Exception e) { } catch (Exception e) {
exception = e; exception = e;
} }
if (exception == null) { if (exception == null) {
LOGGER.finer("Established TCP connection to " + host + " at port " + port);
// We found a host to connect to, break here // We found a host to connect to, break here
this.host = host; this.host = host;
this.port = port; this.port = port;