parent
64eccbf210
commit
3dbb520ad6
|
@ -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 ((higherThanError && !resultIsSuccess) || (higherThanSuccess && resultIsSuccess)) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,10 +35,14 @@ public class ResponseUtil {
|
|||
expandMap.put("status", ApiReportStatus.FAKE_ERROR.name());
|
||||
}
|
||||
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())) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue