Skip to content

Commit

Permalink
fix: 第三方源文件下载过程中查看上传日志报错 TencentBlueKing#2980
Browse files Browse the repository at this point in the history
review意见处理
  • Loading branch information
jsonwan committed May 14, 2024
1 parent 52b8b98 commit 399e4ea
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public FileWorkerHostService(HostService hostService) {
this.hostService = hostService;
}


// 查询file-worker对应主机信息使用60s缓存,避免短时间内多次重复查询
private final LoadingCache<Triple<Long, String, String>, HostDTO> fileWorkerHostCache = CacheBuilder.newBuilder()
.maximumSize(1).expireAfterWrite(60, TimeUnit.SECONDS).
Expand Down Expand Up @@ -93,7 +92,9 @@ private HostDTO parseFileWorkerHost(Long cloudAreaId, String ipProtocol, String
} else {
hostDTO = ServiceHostDTO.toHostDTO(hostService.getHost(new HostDTO(cloudAreaId, ip)));
}
log.debug("host get by ({},{},{}) is {}", ipProtocol, cloudAreaId, ip, hostDTO);
if (log.isDebugEnabled()) {
log.debug("host get by ({},{},{}) is {}", ipProtocol, cloudAreaId, ip, hostDTO);
}
return hostDTO;
}
}

0 comments on commit 399e4ea

Please sign in to comment.