Kaynağa Gözat

日志级别:DEBUG

779513719 4 yıl önce
ebeveyn
işleme
f47f5ba854

+ 1 - 1
jim-server/src/main/java/org/jim/server/command/handler/ChatReqHandler.java

@@ -40,7 +40,7 @@ public class ChatReqHandler extends AbstractCmdHandler {
 			throw new Exception("body is null");
 		}
 		ChatBody chatBody = ChatKit.toChatBody(packet.getBody(),channelContext);
-		log.info("发送消息:"+chatBody.toJsonString());
+		log.debug("发送消息:"+chatBody.toJsonString());
 		packet.setBody(chatBody.toByte());
 		//聊天数据格式不正确
 		if(chatBody == null || chatBody.getChatType() == null){

+ 1 - 1
server-chat/src/main/resources/log4j.properties

@@ -1,4 +1,4 @@
-log4j.rootLogger=INFO,stdout,file
+log4j.rootLogger=DEBUG,stdout,file
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n