aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/rocks/xmpp
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-30 15:10:15 +0700
committerGravatar Alexander Alexeev2016-11-30 15:10:15 +0700
commit1d837a835c04078ec66325e9fb9de21ac401874e (patch)
tree428217d2c617b9caf2eb6d42a7716789881d0937 /juick-server/src/main/java/rocks/xmpp
parentb45c000ed478f2407288aab1532425288f998689 (diff)
prevent string concatenation for disabled loggers
Diffstat (limited to 'juick-server/src/main/java/rocks/xmpp')
-rw-r--r--juick-server/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/juick-server/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java b/juick-server/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java
index 4b2da8b7..3da660b2 100644
--- a/juick-server/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java
+++ b/juick-server/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java
@@ -11,22 +11,20 @@ import java.io.OutputStream;
* Created by vitalyster on 17.11.2016.
*/
public class LogbackDebugger implements XmppDebugger {
-
private static final Logger logger = LoggerFactory.getLogger(LogbackDebugger.class);
@Override
public void initialize(XmppSession xmppSession) {
-
}
@Override
public void writeStanza(String s, Object o) {
- logger.info("OUT: " + s);
+ logger.info("OUT: {}", s);
}
@Override
public void readStanza(String s, Object o) {
- logger.info("IN: " + s);
+ logger.info("IN: {}", s);
}
@Override