diff options
author | 2018-02-18 11:01:14 +0300 | |
---|---|---|
committer | 2018-02-18 11:01:14 +0300 | |
commit | 1b1fe6fd0820a3671f37dc926248bc3e79d66140 (patch) | |
tree | 106efd10e7e4b254cba9c72498cbcbafdd8ed384 /juick-server/src/main/java/com/juick/server/XMPPServer.java | |
parent | 6e5fbdea59e95239f77b429aae83198c6dd61a8d (diff) |
server: move xmpp logging to debug level
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/XMPPServer.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/XMPPServer.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPServer.java b/juick-server/src/main/java/com/juick/server/XMPPServer.java index 86a855a7..a75a7131 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPServer.java +++ b/juick-server/src/main/java/com/juick/server/XMPPServer.java @@ -202,7 +202,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { xmppStreamWriter.flush(); xmppStreamWriter.close(); String xml = stanzaWriter.toString(); - logger.info("s2s (out): {}", xml); + logger.debug("s2s (out): {}", xml); sendOut(Jid.of(s.getTo().getDomain()), xml); } catch (XMLStreamException | JAXBException e1) { logger.info("jaxb exception", e1); @@ -305,7 +305,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { @Override public void starttls(ConnectionIn connection) { - logger.info("stream {} securing", connection.streamID); + logger.debug("stream {} securing", connection.streamID); connection.sendStanza("<proceed xmlns=\"" + Connection.NS_TLS + "\" />"); try { connection.setSocket(sc.getSocketFactory().createSocket(connection.getSocket(), connection.getSocket().getInetAddress().getHostAddress(), @@ -313,7 +313,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { ((SSLSocket) connection.getSocket()).setUseClientMode(false); ((SSLSocket) connection.getSocket()).startHandshake(); connection.setSecured(true); - logger.info("stream {} secured", connection.streamID); + logger.debug("stream {} secured", connection.streamID); connection.restartParser(); } catch (XmlPullParserException | IOException sex) { logger.warn("stream {} ssl error {}", connection.streamID, sex); @@ -331,7 +331,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { socket.getPort(), true); ((SSLSocket) socket).startHandshake(); connection.setSecured(true); - logger.info("stream {} secured", connection.getStreamID()); + logger.debug("stream {} secured", connection.getStreamID()); connection.setInputStream(socket.getInputStream()); connection.setOutputStream(socket.getOutputStream()); connection.restartStream(); @@ -374,10 +374,10 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { @Override public void ready(ConnectionOut connection) { - logger.info("stream to {} {} ready", connection.to, connection.getStreamID()); + logger.debug("stream to {} {} ready", connection.to, connection.getStreamID()); String cache = getFromCache(connection.to); if (cache != null) { - logger.info("stream to {} {} sending cache", connection.to, connection.getStreamID()); + logger.debug("stream to {} {} sending cache", connection.to, connection.getStreamID()); connection.send(cache); } } |