Authored by hugufei

日志优化

... ... @@ -128,13 +128,13 @@ public class UserRecallCacheBean extends AbstractCacheBean<UserRecallRequest, Us
//9、日志打印
if (userRecallRequest.openDetailLog()) {
for (RecallRequestResponse recallRequestResponse : batchRequestResults) {
RecallRequest recallRequest = recallRequestResponse.getRequest();
RecallResponse recallRespone = recallRequestResponse.getResponse();
StringBuilder responseValue = new StringBuilder();
responseValue.append(recallRespone == null ? "null" : JSON.toJSONString(recallRespone));
RECALL_NEW_LOGGER.info("request_type is [{}], response is [{}] ", recallRequest.requestStrategy().name(), responseValue.toString());
}
// for (RecallRequestResponse recallRequestResponse : batchRequestResults) {
// RecallRequest recallRequest = recallRequestResponse.getRequest();
// RecallResponse recallRespone = recallRequestResponse.getResponse();
// StringBuilder responseValue = new StringBuilder();
// responseValue.append(recallRespone == null ? "null" : JSON.toJSONString(recallRespone));
// RECALL_NEW_LOGGER.info("request_type is [{}], response is [{}] ", recallRequest.requestStrategy().name(), responseValue.toString());
// }
}
return batchRequestResults;
}
... ...