还原es日志设置

yun-zuoyi
wynne1005 4 years ago
parent 9b18312be9
commit f7c568bdaf

@ -63,13 +63,12 @@ public class SysLogFactory implements ISysLogService {
if (ImppSwitchUtil.isElasticSearchSwitch() && elasticSearchService != null) {
return elasticSearchService;
} else {
return elasticSearchService;
// throw ImppExceptionBuilder.newInstance()
// .setSystemID(CommonEnumUtil.SOFT_TYPE.IMPP.getCode())
// .setErrorCode(ImppExceptionEnum.LOG_SAVE_STORAGE_ERROR.getCode())
// .setErrorDetail("没有开启Elasticsearch储存技术,请联系管理员")
// .setErrorSolution("请检查配置文件")
// .build();
throw ImppExceptionBuilder.newInstance()
.setSystemID(CommonEnumUtil.SOFT_TYPE.IMPP.getCode())
.setErrorCode(ImppExceptionEnum.LOG_SAVE_STORAGE_ERROR.getCode())
.setErrorDetail("没有开启Elasticsearch储存技术,请联系管理员")
.setErrorSolution("请检查配置文件")
.build();
}
}

Loading…
Cancel
Save