Commit 07dfb713 authored by 于桐's avatar 于桐

增加返回日志结果长度

parent fc3ffd1a
...@@ -58,7 +58,7 @@ public class LogCallHttpAspect { ...@@ -58,7 +58,7 @@ public class LogCallHttpAspect {
Stopwatch stop = stopwatch.stop(); Stopwatch stop = stopwatch.stop();
long elapsed = stop.elapsed(TimeUnit.MILLISECONDS); long elapsed = stop.elapsed(TimeUnit.MILLISECONDS);
String resultStr = result == null ? "" : objectMapper.writeValueAsString(result); String resultStr = result == null ? "" : objectMapper.writeValueAsString(result);
resultStr = resultStr.length() < 500 ? resultStr : resultStr.substring(0, 500); resultStr = resultStr.length() < 1000 ? resultStr : resultStr.substring(0, 1000);
log.info("[httpRequestLog],url:[{}],remoteIP:[{}],args:[{}],duration:[{}],exception:[{}],result:[{}]", log.info("[httpRequestLog],url:[{}],remoteIP:[{}],args:[{}],duration:[{}],exception:[{}],result:[{}]",
request.getRequestURL(), remoteIP, args, elapsed, hasException, resultStr); request.getRequestURL(), remoteIP, args, elapsed, hasException, resultStr);
} }
......
...@@ -59,6 +59,8 @@ import cn.quantgroup.xyqb.util.PasswordUtil; ...@@ -59,6 +59,8 @@ import cn.quantgroup.xyqb.util.PasswordUtil;
import cn.quantgroup.xyqb.util.ValidationUtil; import cn.quantgroup.xyqb.util.ValidationUtil;
import cn.quantgroup.xyqb.util.encrypt.Md5Util; import cn.quantgroup.xyqb.util.encrypt.Md5Util;
import cn.quantgroup.xyqb.validator.ChineseName; import cn.quantgroup.xyqb.validator.ChineseName;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.google.common.base.MoreObjects; import com.google.common.base.MoreObjects;
...@@ -833,6 +835,7 @@ public class InnerController implements IBaseController { ...@@ -833,6 +835,7 @@ public class InnerController implements IBaseController {
} }
Address address = addressService.findByUserId(user.getId()); Address address = addressService.findByUserId(user.getId());
if (!Objects.isNull(address)) { if (!Objects.isNull(address)) {
log.info("[findUserAssociationModelByUser]获取用户地址address:{}", JSON.toJSONString(address));
bean.putAddressList(Collections.singletonList(address)); bean.putAddressList(Collections.singletonList(address));
} }
List<Contact> contacts = contactService.findByUserIdAndBizType(user.getId(), BizType.CASH, true); List<Contact> contacts = contactService.findByUserIdAndBizType(user.getId(), BizType.CASH, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment