aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-02-01 19:48:21 +0300
committerGravatar Vitaly Takmazov2016-02-01 19:48:21 +0300
commita9a7dd2da8db472e20c3aa44ae7cac274b8ed499 (patch)
tree76791098b26e0bd77b08e9f9b586e77e8c8c896c /src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
parent14c5ddd69a6f76a96d7eb98afb01caac79308553 (diff)
refactoring
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/ConnectionIn.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/ConnectionIn.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
index 7b9483f7..6bb81b0d 100644
--- a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
+++ b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
@@ -16,6 +16,7 @@ import java.nio.channels.Channels;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
+import java.util.logging.Level;
import java.util.logging.Logger;
/**
@@ -146,8 +147,7 @@ public class ConnectionIn extends Connection implements Runnable {
XMPPComponent.removeConnectionIn(this);
closeConnection();
} catch (Exception e) {
- LOGGER.warning("STREAM " + streamID + " ERROR:" + e.toString());
- e.printStackTrace();
+ LOGGER.log(Level.WARNING, "STREAM " + streamID + " ERROR", e);
XMPPComponent.removeConnectionIn(this);
closeConnection();
}