From c770b12348d6fc6e98e58b619be881f52220f6e8 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 4 Jan 2015 16:03:46 +0100 Subject: [PATCH] Add log statements around socket.connect() of XMPPTCPConnection --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index 43800aca0..ed2150af3 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -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;