mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Add log statements around socket.connect() of XMPPTCPConnection
This commit is contained in:
parent
a24c813ed1
commit
c770b12348
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue