diff options
author | 2016-02-02 00:01:22 +0300 | |
---|---|---|
committer | 2016-02-02 00:01:22 +0300 | |
commit | 9bd81dc9e69ba58d8fedd4adfb7e80245019eb18 (patch) | |
tree | e78e2c75219ff1fe74844b3878ab6a7f69bdcc7e /src/main/java/com | |
parent | 26c09174eb64d6f67509236a8f47992b475b7c6b (diff) |
prettify s2s out logs
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 6 |
1 files changed, 6 insertions, 0 deletions
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); |