From 86ad192bea16c6524b8b5c8a789993df395ee174 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 26 Apr 2014 19:42:26 +0200 Subject: [PATCH] Log connectionClosedOnError exceptions --- core/src/main/java/org/jivesoftware/smack/XMPPConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/jivesoftware/smack/XMPPConnection.java b/core/src/main/java/org/jivesoftware/smack/XMPPConnection.java index 49a6b1baa..25cd0c2db 100644 --- a/core/src/main/java/org/jivesoftware/smack/XMPPConnection.java +++ b/core/src/main/java/org/jivesoftware/smack/XMPPConnection.java @@ -1017,6 +1017,7 @@ public abstract class XMPPConnection { } void callConnectionClosedOnErrorListener(Exception e) { + LOGGER.log(Level.WARNING, "Connection closed with error", e); for (ConnectionListener listener : getConnectionListeners()) { try { listener.connectionClosedOnError(e);