Commit 32d2f0d6afe2fe350ac197da2c30a9d6eef51d9c

Authored by xp.Huang
1 parent d24f0f56

docs: 调整日志级别

@@ -163,7 +163,7 @@ public class ZLMediaKitRestFulUtils { @@ -163,7 +163,7 @@ public class ZLMediaKitRestFulUtils {
163 } 163 }
164 164
165 Request request = new Request.Builder().url(httpBuilder.build()).build(); 165 Request request = new Request.Builder().url(httpBuilder.build()).build();
166 - log.warn(request.toString()); 166 + log.info(request.toString());
167 try { 167 try {
168 OkHttpClient client = getClient(); 168 OkHttpClient client = getClient();
169 Response response = client.newCall(request).execute(); 169 Response response = client.newCall(request).execute();
@@ -190,7 +190,7 @@ public class ZLMediaKitRestFulUtils { @@ -190,7 +190,7 @@ public class ZLMediaKitRestFulUtils {
190 } 190 }
191 } catch (ConnectException e) { 191 } catch (ConnectException e) {
192 log.error(String.format("连接ZLM失败: %s, %s", e.getCause().getMessage(), e.getMessage())); 192 log.error(String.format("连接ZLM失败: %s, %s", e.getCause().getMessage(), e.getMessage()));
193 - log.info("请检查media配置并确认ZLM已启动..."); 193 + log.error("请检查media配置并确认ZLM已启动...");
194 } catch (IOException e) { 194 } catch (IOException e) {
195 log.error(String.format("[ %s ]请求失败: %s", url, e.getMessage())); 195 log.error(String.format("[ %s ]请求失败: %s", url, e.getMessage()));
196 } 196 }
@@ -45,7 +45,7 @@ public class SSRCFactory { @@ -45,7 +45,7 @@ public class SSRCFactory {
45 cacheUtils.invalidate(cacheName, redisKey); 45 cacheUtils.invalidate(cacheName, redisKey);
46 } 46 }
47 // 把这10000个ssrc放入缓存 47 // 把这10000个ssrc放入缓存
48 - log.error("初始化SSRC资源,可用资源数【{}】", ssrcList.size()); 48 + log.info("初始化SSRC资源,可用资源数【{}】", ssrcList.size());
49 cacheUtils.put(cacheName, redisKey, ssrcList); 49 cacheUtils.put(cacheName, redisKey, ssrcList);
50 }); 50 });
51 } 51 }
@@ -79,7 +79,7 @@ public class SSRCFactory { @@ -79,7 +79,7 @@ public class SSRCFactory {
79 all.ifPresent( 79 all.ifPresent(
80 list -> { 80 list -> {
81 list.add(sn); 81 list.add(sn);
82 - log.error("释放视频流【{}】可用资源数【{}】", ssrc, list.size()); 82 + log.info("释放视频流【{}】可用资源数【{}】", ssrc, list.size());
83 cacheUtils.put(cacheName, redisKey, list); 83 cacheUtils.put(cacheName, redisKey, list);
84 }); 84 });
85 } 85 }
@@ -98,7 +98,7 @@ public class SSRCFactory { @@ -98,7 +98,7 @@ public class SSRCFactory {
98 if (sn.isPresent()) { 98 if (sn.isPresent()) {
99 list.remove(sn.get()); 99 list.remove(sn.get());
100 cacheUtils.put(cacheName, redisKey, list); 100 cacheUtils.put(cacheName, redisKey, list);
101 - log.error("获取视频流【{}】可用资源数【{}】", sn, list.size()); 101 + log.info("获取视频流【{}】可用资源数【{}】", sn, list.size());
102 return sn.get(); 102 return sn.get();
103 } 103 }
104 } 104 }