Ver Fonte

config: 把一些debug的日志从info调整为debug,日志太多了。

vinson há 4 anos atrás
pai
commit
3ab28dfd63

+ 1 - 1
src/main/java/com/tidecloud/dataacceptance/service/AcceptanceInboundHandlerAdapter.java

@@ -146,7 +146,7 @@ public  class AcceptanceInboundHandlerAdapter extends ChannelInboundHandlerAdapt
 				MDC.put(MDC_DEVICEID, deviceId);
 				MDC.put("strategyName", AcceptanceInboundHandlerAdapter.this.getPrefixName());
 				// 成功业务逻辑
-				logger.info("发送kafka成功.deviceId:{}, msg:{}", deviceId, msg);
+				logger.debug("发送kafka成功.deviceId:{}, msg:{}", deviceId, msg);
 			}
 		};
 		// 发送失败回调

+ 3 - 2
src/main/java/com/tidecloud/dataacceptance/service/HexBinaryAcceptanceHandlerAdapter.java

@@ -33,11 +33,12 @@ public abstract class HexBinaryAcceptanceHandlerAdapter extends AcceptanceInboun
             // release每次只把引用次数减1,通过日志发现,这里是in对象最后一次被引用的地方
             // 可以推断出在handler方法中必然有把in的引用次数增加但是没有做释放的操作
             // 代码太多了,不好排查。这里先做一个兜底的操作,如果释放不成功,多次释放,直到成功为止
-            logger.info("the ref count is: {}", in.refCnt());
+            // 事实证明不是这里的问题,但是放在这里也没有问题,把日志改成debug级别,打印的太多了
+            logger.debug("the ref count is: {}", in.refCnt());
             boolean isReleaseSuccess = false;
             while (!isReleaseSuccess) {
                 isReleaseSuccess = in.release();
-                logger.info("is release success: {}", isReleaseSuccess);
+                logger.debug("is release success: {}", isReleaseSuccess);
             }
         }