Commit aadb77c5 authored by 赵啸非's avatar 赵啸非

添加php健康度检测

parent a8f3e905
......@@ -504,17 +504,17 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
this.update(setupProjectEntity);
}
log.info("服务实例详细查询url:{},返回:{},naocsResponse:{}", serverUrl, resp, JSON.toJSONString(nacosResponse));
//log.info("服务实例详细查询url:{},返回:{},naocsResponse:{}", serverUrl, resp, JSON.toJSONString(nacosResponse));
} catch (JSONException e) {
log.info("json反序列化异常:{},返回:{}", e.getMessage(), resp);
//log.info("json反序列化异常:{},返回:{}", e.getMessage(), resp);
if (setupProjectEntity.getProjectStatus() > ProjectStatusEnum.未部署.getValue()) {
setupProjectEntity.setProjectStatus(ProjectStatusEnum.停止.getValue());
setupProjectEntity.setUpdateTime(new Date());
this.update(setupProjectEntity);
}
} catch (Exception e) {
log.error("发生异常:{}", e.getMessage());
// log.error("发生异常:{}", e.getMessage());
}
} else if (ProjectTypeEnum.前端.getValue() == setupProjectEntity.getProjectType()) {
//todo 前端 判断路径文件是否存在 如果存在 则代表运行
......@@ -531,7 +531,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
setupProjectEntity.setUpdateTime(new Date());
this.update(setupProjectEntity);
}
log.info("前端资源路径:{},是否存在:{}", destPath, uiFile.exists());
// log.info("前端资源路径:{},是否存在:{}", destPath, uiFile.exists());
} else if (ProjectTypeEnum.PHP后端.getValue() == setupProjectEntity.getProjectType()) {
//todo 前端 判断路径文件是否存在 如果存在 则代表运行
if (ProductDisEnum.排号系统PHP后端.getValue().equals(setupProjectEntity.getProjectCode())) {
......@@ -544,14 +544,14 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
setupProjectEntity.setUpdateTime(new Date());
this.update(setupProjectEntity);
} catch (JSONException e) {
log.info("json反序列化异常:{},返回:{}", e.getMessage(), resp);
// log.info("json反序列化异常:{},返回:{}", e.getMessage(), resp);
if (setupProjectEntity.getProjectStatus() > ProjectStatusEnum.未部署.getValue()) {
setupProjectEntity.setProjectStatus(ProjectStatusEnum.停止.getValue());
setupProjectEntity.setUpdateTime(new Date());
this.update(setupProjectEntity);
}
} catch (Exception e) {
log.error("发生异常:{}", e.getMessage());
// log.error("发生异常:{}", e.getMessage());
}
}
......@@ -565,14 +565,14 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
setupProjectEntity.setUpdateTime(new Date());
this.update(setupProjectEntity);
} catch (JSONException e) {
log.info("json反序列化异常:{},返回:{}", e.getMessage(), resp);
//log.info("json反序列化异常:{},返回:{}", e.getMessage(), resp);
if (setupProjectEntity.getProjectStatus() > ProjectStatusEnum.未部署.getValue()) {
setupProjectEntity.setProjectStatus(ProjectStatusEnum.停止.getValue());
setupProjectEntity.setUpdateTime(new Date());
this.update(setupProjectEntity);
}
} catch (Exception e) {
log.error("发生异常:{}", e.getMessage());
// log.error("发生异常:{}", e.getMessage());
}
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment