From bc387bb4b171f1037194db2bd60790416c04d930 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 29 Nov 2016 23:46:32 +0300 Subject: juick-ws: add xmpp debugger --- juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-ws') diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java index 2019ec0a..6bec6efa 100644 --- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java +++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java @@ -17,6 +17,7 @@ import rocks.xmpp.core.XmppException; import rocks.xmpp.core.session.Extension; import rocks.xmpp.core.session.XmppSession; import rocks.xmpp.core.session.XmppSessionConfiguration; +import rocks.xmpp.core.session.debug.LogbackDebugger; import rocks.xmpp.core.stanza.model.Message; import rocks.xmpp.extensions.component.accept.ExternalComponent; @@ -57,6 +58,7 @@ public class XMPPConnection implements AutoCloseable { XmppSessionConfiguration configuration = XmppSessionConfiguration.builder() .extensions(Extension.of(com.juick.Message.class)) + .debugger(LogbackDebugger.class) .build(); xmpp = ExternalComponent.create(wsJid, xmppPassword, configuration, "localhost", xmppPort); xmpp.addInboundMessageListener(e -> { -- cgit v1.2.3