diff options
author | Vitaly Takmazov | 2016-11-29 23:46:32 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-29 23:46:32 +0300 |
commit | bc387bb4b171f1037194db2bd60790416c04d930 (patch) | |
tree | 98bb1e4b46cfdc43d160f6d88a539d0a78e64502 /juick-ws | |
parent | b35c28c808f1eaf4dc4174c865a8f172ff69cc5a (diff) |
juick-ws: add xmpp debugger
Diffstat (limited to 'juick-ws')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
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 -> { |