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