Commit 3148b45f by 向延琳

修改日志打印

1 parent 2c020903
......@@ -164,7 +164,9 @@ public class DeviceFreqService {
public void closeDeviceFreqFromCache() {
Collection<String> snList = redisDelayQueue.getAndRemoveBusinessNo(TASK_KEY_FREQ_TIMING_CLOSE);
if (CollectionUtils.isEmpty(snList)) {
log.info(DateUtil.getNowDateTimeFormat() + "没有需要关闭的调频");
if(log.isDebugEnabled()) {
log.debug(DateUtil.getNowDateTimeFormat() + "没有需要关闭的调频");
}
return;
}
log.info(DateUtil.getNowDateTimeFormat() + "需要关闭的调频数量:" + snList.size());
......@@ -178,7 +180,9 @@ public class DeviceFreqService {
public void closeDeviceFreqFromDB() {
List<String> snList = deviceFreqMapper.listToCloseFreq();
if (CollectionUtils.isEmpty(snList)) {
log.info(DateUtil.getNowDateTimeFormat() + "没有需要关闭的调频");
if(log.isDebugEnabled()) {
log.debug(DateUtil.getNowDateTimeFormat() + "没有需要关闭的调频");
}
return;
}
log.info(DateUtil.getNowDateTimeFormat() + "需要关闭的调频数量:" + snList.size());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!