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
1 changed files with 2 additions and 0 deletions

View File

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