Authored by qinchao

添加日志

... ... @@ -43,7 +43,7 @@ public class HostInfoCtrl {
@RequestMapping("/getHostInfoJson")
@ResponseBody
public String getHostInfoJson(@RequestBody CmdbApiReq apiReq) {
log.debug("cmdbapi param {}", apiReq);
log.info("cmdbapi param {}", apiReq);
return hostInfoService.getHostInfoJson(apiReq.getSourceIp(), apiReq.getContent());
}
... ...
... ... @@ -40,9 +40,9 @@ public class HostInfoServiceImpl implements IHostInfoService {
@Override
public String getHostInfoJson(String sourceIp ,String content){
logger.debug("begin getHostInfoJson");
logger.info("begin getHostInfoJson");
String backJson="";
if(StringUtils.isNotBlank(content)&&sourceIp.startsWith("127")){
if(StringUtils.isNotBlank(content)&&sourceIp.startsWith("172")){
JSONObject jo=JSON.parseObject(content);
List<Integer> cloudTypeList=new ArrayList<Integer>();
List<String> tagsList=new ArrayList<String>();
... ...