|
|
@ -1,6 +1,5 @@ |
|
|
|
package com.epmet.commons.tools.aspect; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.tools.constant.AppClientConstant; |
|
|
|
import com.epmet.commons.tools.constant.ThreadLocalConstant; |
|
|
|
import com.epmet.commons.tools.exception.*; |
|
|
@ -14,6 +13,7 @@ import org.springframework.dao.DuplicateKeyException; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.time.Duration; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
/** |
|
|
|
* 日志切面 |
|
|
@ -63,7 +63,7 @@ public abstract class BaseRequestLogAspect { |
|
|
|
|
|
|
|
try { |
|
|
|
Object[] args = point.getArgs(); |
|
|
|
ThreadLocalConstant.requestParam.set(JSON.toJSONString(args)); |
|
|
|
ThreadLocalConstant.requestParam.set(Arrays.toString(point.getArgs())); |
|
|
|
log.info(">>>>>>>>请求信息>>>>>>>>:事务流水号:{},url:{} ,method:{},请求参数:{}", transactionSerial, requestURI, method, objectsToString(args)); |
|
|
|
result = point.proceed(); |
|
|
|
resultInfoLog(transactionSerial, getExecPeriod(startTime), result); |
|
|
|