请求资源列表的size大于maxListSize(默认10)时,请求日志中不保存request_content
This commit is contained in:
@@ -50,6 +50,7 @@ public class AuditLogThread implements Runnable {
|
||||
private int businessCode;
|
||||
private String exceptionInfo;
|
||||
private String traceCode;
|
||||
private Boolean saveContentFlag=true;//是否保存请求内容
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
@@ -62,7 +63,7 @@ public class AuditLogThread implements Runnable {
|
||||
CustomerContextHolder.setCustomerType(CustomerContextHolder.DATA_SOURCE_A);// 开启数据源B
|
||||
if (service != null) {
|
||||
service.saveRequestLog(remoteAddr, requestURI, queryString, contextPath, operator, version, opAction,
|
||||
opTime, content, requestTime, consumerTime, businessCode, exceptionInfo, traceCode);
|
||||
opTime, content, requestTime, consumerTime, businessCode, exceptionInfo, traceCode,saveContentFlag);
|
||||
} else {
|
||||
logger.error("service 为空!");
|
||||
}
|
||||
@@ -430,4 +431,11 @@ public class AuditLogThread implements Runnable {
|
||||
this.traceCode = traceCode;
|
||||
}
|
||||
|
||||
public Boolean getSaveContentFlag() {
|
||||
return saveContentFlag;
|
||||
}
|
||||
|
||||
public void setSaveContentFlag(Boolean saveContentFlag) {
|
||||
this.saveContentFlag = saveContentFlag;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user