Commit 7ba6e4ef by 杨林龙

优化日志显示

1 parent 4bb4d85d
...@@ -37,10 +37,10 @@ public class AsyncTasks { ...@@ -37,10 +37,10 @@ public class AsyncTasks {
return; return;
} }
try { try {
log.info("开始分批同步激活信息,snList===" + JSONUtil.toJsonStr(snList)); log.info("saveActiveInfo 开始分批同步激活信息,snList===" + JSONUtil.toJsonStr(snList));
List<GpsBsData> lastGpsBsList = remoteGpsBsService.getLastGpsBsListBySns(snList); List<GpsBsData> lastGpsBsList = remoteGpsBsService.getLastGpsBsListBySns(snList);
if (CollectionUtil.isEmpty(lastGpsBsList)) { if (CollectionUtil.isEmpty(lastGpsBsList)) {
log.info("lastGpsBsList is null"); log.info("saveActiveInfo lastGpsBsList is null");
return; return;
} }
lastGpsBsList.forEach(gpsBsData -> { lastGpsBsList.forEach(gpsBsData -> {
...@@ -90,10 +90,10 @@ public class AsyncTasks { ...@@ -90,10 +90,10 @@ public class AsyncTasks {
return; return;
} }
try { try {
log.info("开始分批同步激活信息,snList===" + JSONUtil.toJsonStr(snList)); log.info("saveActiveInfoByTask 开始分批同步激活信息,snList===" + JSONUtil.toJsonStr(snList));
List<GpsBsData> lastGpsBsList = remoteGpsBsService.getFirstGpsBsBatch(snList); List<GpsBsData> lastGpsBsList = remoteGpsBsService.getFirstGpsBsBatch(snList);
if (CollectionUtil.isEmpty(lastGpsBsList)) { if (CollectionUtil.isEmpty(lastGpsBsList)) {
log.info("lastGpsBsList is null"); log.info("saveActiveInfoByTask lastGpsBsList is null");
return; return;
} }
lastGpsBsList.forEach(gpsBsData -> { lastGpsBsList.forEach(gpsBsData -> {
...@@ -117,11 +117,11 @@ public class AsyncTasks { ...@@ -117,11 +117,11 @@ public class AsyncTasks {
} }
} }
// 保存激活信息 // 保存激活信息
log.info("active device info:" + JSONUtil.toJsonStr(vehicleDevice)); log.info("active device info by task:" + JSONUtil.toJsonStr(vehicleDevice));
vehicleDeviceMapper.updateByPrimaryKeySelective(vehicleDevice); vehicleDeviceMapper.updateByPrimaryKeySelective(vehicleDevice);
}); });
} catch (Exception e) { } catch (Exception e) {
log.info("saveActiveInfo异常信息===" + e.getMessage()); log.info("saveActiveInfoByTask异常信息===" + e.getMessage());
} finally { } finally {
countDownLatch.countDown(); countDownLatch.countDown();
log.info(Thread.currentThread().getName() + "countDownLatch关闭资源"); log.info(Thread.currentThread().getName() + "countDownLatch关闭资源");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!