From 4b7a396b9b224a792cd189c477587a88c5430dfe Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 26 Feb 2015 08:27:19 +0100 Subject: [PATCH] Improve logging wrt XMPPTCPConnection.shutdownDone --- .../java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a6dc0a516..75be75283 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 @@ -1260,7 +1260,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { shutdownDone.checkIfSuccessOrWait(); } catch (NoResponseException e) { - LOGGER.log(Level.WARNING, "NoResponseException", e); + LOGGER.log(Level.WARNING, "shutdownDone was not marked as successful by the writer thread", e); } } @@ -1406,6 +1406,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { LOGGER.log(Level.FINE, "Ignoring Exception in writePackets()", e); } } finally { + LOGGER.fine("Reporting shutdownDone success in writer thread"); shutdownDone.reportSuccess(); } }