From 8d80768befad0246ab69d46179243079edc9a5b7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 10 May 2016 22:54:26 +0300 Subject: log ssl errors --- src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java index 607cd20a..8ce1b76d 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java @@ -128,7 +128,7 @@ public class ConnectionOut extends Connection implements Runnable { restartParser(); sendOpenStream(); } catch (SSLException sex) { - System.err.println("STREAM " + streamID + " SSL ERROR"); + LOGGER.log(Level.SEVERE, String.format("s2s ssl error: %s %s", to, streamID), sex); sendStanza(""); XMPPComponent.removeConnectionOut(this); closeConnection(); -- cgit v1.2.3