From 1d837a835c04078ec66325e9fb9de21ac401874e Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Wed, 30 Nov 2016 15:10:15 +0700 Subject: prevent string concatenation for disabled loggers --- .../main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'juick-server/src/main/java/rocks/xmpp/core') 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 -- cgit v1.2.3