瀏覽代碼

优化日志打印样式

648540858 1 年之前
父節點
當前提交
eac72fd06e

+ 1 - 1
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

@@ -263,7 +263,7 @@ public class ZLMHttpHookListener {
         }
 
         // 国标流
-        if ("rtp".equals(param.getApp())) {
+        if ("rtp".equals(param.getApp()) ) {
             String ssrc = String.format("%010d", Long.parseLong(param.getStream(), 16));
             InviteInfo inviteInfo = inviteStreamService.getInviteInfoBySSRC(ssrc);
 

+ 2 - 2
src/main/resources/logback-spring.xml

@@ -5,7 +5,7 @@
 	<property name="LOG_HOME" value="logs" />
 
 	<substitutionProperty name="log.pattern"
-						  value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr([%thread]) %clr(%5p) %clr(---){faint} %clr(%logger{50}){cyan} %clr(:) %clr(%L){faint} %m%n%wEx"/>
+						  value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr([%thread]) %clr(%5p) %clr(---){faint} %clr(%logger{50}){cyan}%clr(:) %clr(%L){cyan} %m%n%wEx"/>
 	<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>
 	<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
 	<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/>
@@ -86,7 +86,7 @@
 
 
 	<!-- 日志输出级别 -->
-	<root level="DEBUG">
+	<root level="INFO">
 		<appender-ref ref="STDOUT" />
 	</root>