日志修正

This commit is contained in:
shikong 2023-08-10 01:38:31 +08:00
parent 0510f360a2
commit d73d758c62
2 changed files with 3 additions and 4 deletions

View File

@ -25,7 +25,7 @@ public class ServerLoggerImpl implements ServerLogger {
if (!showLog) {
return;
}
String log = (sender ? "发送: 目标 =>" + from : "接收: 来自 => " + to) + "\r\n" + message;
String log = (sender ? "发送: 目标 =>" + to : "接收: 来自 => " + from) + "\r\n" + message;
this.stackLogger.logInfo(log);
}
@ -34,7 +34,7 @@ public class ServerLoggerImpl implements ServerLogger {
if (!showLog) {
return;
}
String log = (sender ? "发送: 目标 =>" + from : "接收: 来自 => " + to) + "\r\n" + message;
String log = (sender ? "发送: 目标 =>" + to : "接收: 来自 => " + from) + "\r\n" + message;
this.stackLogger.logInfo(log);
}
@ -43,7 +43,7 @@ public class ServerLoggerImpl implements ServerLogger {
if (!showLog) {
return;
}
String log = (sender ? "发送: 目标 =>" + from : "接收: 来自 => " + to) + "\r\n" + message;
String log = (sender ? "发送: 目标 =>" + to : "接收: 来自 => " + from) + "\r\n" + message;
this.stackLogger.logInfo(log);
}

View File

@ -5,7 +5,6 @@ import cn.skcks.docking.gb28181.core.sip.message.parser.GbStringMsgParserFactory
import cn.skcks.docking.gb28181.core.sip.properties.DefaultProperties;
import gov.nist.javax.sip.SipProviderImpl;
import gov.nist.javax.sip.SipStackImpl;
import gov.nist.javax.sip.stack.MessageProcessorFactory;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;