|
@@ -87,7 +87,7 @@ public class LogAspect {
|
|
|
if (null != jsonResult) {
|
|
|
ObjectMapper objectWriter = new ObjectMapper();
|
|
|
try {
|
|
|
- operationLog.setJsonResult(StringUtils.substring(objectWriter.writeValueAsString(jsonResult), 0, 500));
|
|
|
+ operationLog.setJsonResult(StringUtils.substring(objectWriter.writeValueAsString(jsonResult), 0, 250));
|
|
|
} catch (JsonProcessingException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -108,7 +108,7 @@ public class LogAspect {
|
|
|
OperationLogDTO operationLog = multiplexing(joinPoint);
|
|
|
BeanUtils.copyProperties(operationLog, abnormalLogDTO);
|
|
|
abnormalLogDTO.setOperationAgent(HttpUtils.getHttpServletRequest().getHeader("User-Agent"));
|
|
|
- abnormalLogDTO.setOperationErrorInfo(StringUtils.substring(e.toString(), 0, 500));
|
|
|
+ abnormalLogDTO.setOperationErrorInfo(StringUtils.substring(e.toString(), 0, 250));
|
|
|
messageService.abnormalLogHandle(abnormalLogDTO);
|
|
|
}
|
|
|
|
|
@@ -138,7 +138,7 @@ public class LogAspect {
|
|
|
try {
|
|
|
String params = getControllerMethodDescription(joinPoint);
|
|
|
if (StringUtils.isNotBlank(params)) {
|
|
|
- operationLog.setOperationParam(StringUtils.substring(params, 0, 500));
|
|
|
+ operationLog.setOperationParam(params);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@@ -162,7 +162,7 @@ public class LogAspect {
|
|
|
Object args = joinPoint.getArgs();
|
|
|
if (null != args) {
|
|
|
String params = argsArrayToString(joinPoint.getArgs());
|
|
|
- return StringUtils.substring(params, 0, 1000);
|
|
|
+ return StringUtils.substring(params, 0, 250);
|
|
|
}
|
|
|
}
|
|
|
return "";
|