From 9bd81dc9e69ba58d8fedd4adfb7e80245019eb18 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 2 Feb 2016 00:01:22 +0300 Subject: prettify s2s out logs --- src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com') diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java index c4334fed..59fdfb60 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java @@ -1,6 +1,8 @@ package com.juick.xmpp.s2s; import com.juick.xmpp.utils.XmlUtils; + +import java.io.EOFException; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; @@ -112,6 +114,10 @@ public class ConnectionOut extends Connection { LOGGER.warning("STREAM TO " + to + " " + streamID + " FINISHED"); XMPPComponent.removeConnectionOut(ConnectionOut.this); closeConnection(); + } catch (EOFException eofex) { + LOGGER.info(String.format("STREAM %s %s CLOSED (dirty)", to, streamID)); + XMPPComponent.removeConnectionOut(ConnectionOut.this); + closeConnection(); } catch (Exception e) { LOGGER.log(Level.SEVERE, "s2s out exception", e); XMPPComponent.removeConnectionOut(ConnectionOut.this); -- cgit v1.2.3