Commit 81ab5a36 authored by 赵啸非's avatar 赵啸非

网关日志添加

parent 300f3e64
......@@ -2,6 +2,7 @@ package com.mortals.xhx.base.framework.filter;
import cn.hutool.core.net.NetUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.mortals.framework.model.AccessLogPdu;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.common.utils.IpUtils;
......@@ -265,7 +266,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
// 释放掉内存
DataBufferUtils.release(join);
String responseResult = new String(content, StandardCharsets.UTF_8);
accessLogPdu.setResponseData(responseResult);
accessLogPdu.setResponseData(StrUtil.maxLength(responseResult,3000));
return bufferFactory.wrap(content);
}));
}
......
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