parent
a9882a118b
commit
3bded248d0
|
@ -143,13 +143,18 @@ public class ErrorReportLibraryUtil {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
LogUtil.info(" FAKE_ERROR result: config-higherThanError:" + higherThanError + ", config-higherThanSuccess:" + higherThanSuccess + ", resultIsSuccess: " + resultIsSuccess);
|
|
||||||
if (CollectionUtils.isNotEmpty(result.errorCodeList)) {
|
if (CollectionUtils.isNotEmpty(result.errorCodeList)) {
|
||||||
if ((higherThanError && !resultIsSuccess) || (higherThanSuccess && resultIsSuccess)) {
|
if ((higherThanError && !resultIsSuccess) || (higherThanSuccess && resultIsSuccess)) {
|
||||||
result.requestStatus = ApiReportStatus.FAKE_ERROR.name();
|
result.requestStatus = ApiReportStatus.FAKE_ERROR.name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
LogUtil.info(" FAKE_ERROR result: config-higherThanError:" + higherThanError
|
||||||
|
+ ", config-higherThanSuccess:" + higherThanSuccess
|
||||||
|
+ ", resultIsSuccess: " + resultIsSuccess
|
||||||
|
+ ", isFakeError: " + ((higherThanError && !resultIsSuccess) || (higherThanSuccess && resultIsSuccess))
|
||||||
|
+ "; status:" + result.requestStatus);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,14 @@ public class ResponseUtil {
|
||||||
expandMap.put("status", ApiReportStatus.FAKE_ERROR.name());
|
expandMap.put("status", ApiReportStatus.FAKE_ERROR.name());
|
||||||
}
|
}
|
||||||
expandDTO.setAttachInfoMap(expandMap);
|
expandDTO.setAttachInfoMap(expandMap);
|
||||||
|
LogUtil.info(" FAKE_ERROR result.id:" + errorCodeDTO.getRequestStatus() + "; AttachInfoMap:" + JSON.toJSONString(expandDTO.getAttachInfoMap()));
|
||||||
}
|
}
|
||||||
if (StringUtils.equalsIgnoreCase(errorCodeDTO.getRequestStatus(), ApiReportStatus.FAKE_ERROR.name())) {
|
if (StringUtils.equalsIgnoreCase(errorCodeDTO.getRequestStatus(), ApiReportStatus.FAKE_ERROR.name())) {
|
||||||
expandDTO.setStatus(errorCodeDTO.getRequestStatus());
|
expandDTO.setStatus(errorCodeDTO.getRequestStatus());
|
||||||
}
|
}
|
||||||
|
LogUtil.info(" FAKE_ERROR result.id:" + errorCodeDTO.getRequestStatus()
|
||||||
|
+ ";status:" + expandDTO.getStatus()
|
||||||
|
+ " AttachInfoMap:" + (expandDTO.getAttachInfoMap() == null ? "null" : JSON.toJSONString(expandDTO.getAttachInfoMap())));
|
||||||
return expandDTO;
|
return expandDTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue