diff options
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/xmpp')
3 files changed, 10 insertions, 10 deletions
diff --git a/juick-server/src/main/java/com/juick/server/xmpp/s2s/Connection.java b/juick-server/src/main/java/com/juick/server/xmpp/s2s/Connection.java index d745a406..6bf61169 100644 --- a/juick-server/src/main/java/com/juick/server/xmpp/s2s/Connection.java +++ b/juick-server/src/main/java/com/juick/server/xmpp/s2s/Connection.java @@ -93,7 +93,7 @@ public class Connection { public void closeConnection() { if (streamID != null) { - logger.info("closing stream {}", streamID); + logger.debug("closing stream {}", streamID); } try { diff --git a/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java b/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java index a658dbde..dc7b3af9 100644 --- a/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java +++ b/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java @@ -88,7 +88,7 @@ public class ConnectionIn extends Connection implements Runnable { if (tag.equals("result") && parser.getNamespace().equals(NS_DB)) { String dfrom = parser.getAttributeValue(null, "from"); String to = parser.getAttributeValue(null, "to"); - logger.info("stream from {} to {} {} asking for dialback", dfrom, to, streamID); + logger.debug("stream from {} to {} {} asking for dialback", dfrom, to, streamID); if (dfrom.endsWith(xmpp.getJid().toEscapedString()) && (dfrom.equals(xmpp.getJid().toEscapedString()) || dfrom.endsWith("." + xmpp.getJid()))) { logger.warn("stream from {} is invalid", dfrom); @@ -117,19 +117,19 @@ public class ConnectionIn extends Connection implements Runnable { } if (valid[0]) { sendStanza("<db:verify from='" + vto + "' to='" + vfrom + "' id='" + vid + "' type='valid'/>"); - logger.info("stream from {} {} dialback verify valid", vfrom, streamID); + logger.debug("stream from {} {} dialback verify valid", vfrom, streamID); } else { sendStanza("<db:verify from='" + vto + "' to='" + vfrom + "' id='" + vid + "' type='invalid'/>"); logger.warn("stream from {} {} dialback verify invalid", vfrom, streamID); } } else if (tag.equals("presence") && checkFromTo(parser)) { String xml = XmlUtils.parseToString(parser, false); - logger.info("stream {} presence: {}", streamID, xml); + logger.debug("stream {} presence: {}", streamID, xml); xmpp.onStanzaReceived(xml); } else if (tag.equals("message") && checkFromTo(parser)) { updateTsRemoteData(); String xml = XmlUtils.parseToString(parser, false); - logger.info("stream {} message: {}", streamID, xml); + logger.debug("stream {} message: {}", streamID, xml); xmpp.onStanzaReceived(xml); } else if (tag.equals("iq") && checkFromTo(parser)) { @@ -137,7 +137,7 @@ public class ConnectionIn extends Connection implements Runnable { String type = parser.getAttributeValue(null, "type"); String xml = XmlUtils.parseToString(parser, false); if (type == null || !type.equals("error")) { - logger.info("stream {} iq: {}", streamID, xml); + logger.debug("stream {} iq: {}", streamID, xml); xmpp.onStanzaReceived(xml); } } else if (!isSecured() && tag.equals("starttls")) { @@ -190,7 +190,7 @@ public class ConnectionIn extends Connection implements Runnable { sendStanza("<db:result from='" + xmpp.getJid().toEscapedString() + "' to='" + sfrom + "' type='" + type + "'/>"); if (type.equals("valid")) { from.add(sfrom); - logger.info("stream from {} {} ready", sfrom, streamID); + logger.debug("stream from {} {} ready", sfrom, streamID); } } diff --git a/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionOut.java b/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionOut.java index fb95f0e4..e3bd53e9 100644 --- a/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionOut.java +++ b/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionOut.java @@ -89,7 +89,7 @@ public class ConnectionOut extends Stream { throw new Exception("stream to " + to + " invalid first packet"); } - logger.info("stream to {} {} open", to, streamID); + logger.debug("stream to {} {} open", to, streamID); boolean xmppversionnew = parser.getAttributeValue(null, "version") != null; if (!xmppversionnew) { processDialback(); @@ -107,7 +107,7 @@ public class ConnectionOut extends Stream { streamReady = true; listener.ready(this); } else { - logger.info("stream to {} {} dialback fail", to, streamID); + logger.warn("stream to {} {} dialback fail", to, streamID); } XmlUtils.skip(parser); } else if (tag.equals("verify") && parser.getNamespace().equals(NS_DB)) { @@ -120,7 +120,7 @@ public class ConnectionOut extends Stream { StreamFeatures features = StreamFeatures.parse(parser); if (listener != null && !secured && features.STARTTLS >= 0 && listener.securing(this)) { - logger.info("stream to {} {} securing", to.toEscapedString(), streamID); + logger.debug("stream to {} {} securing", to.toEscapedString(), streamID); send("<starttls xmlns=\"" + NS_TLS + "\" />"); } else { processDialback(); |