update - 调整API 及 Service 日志记录
This commit is contained in:
parent
fc6ac8f310
commit
c5df82ee22
@ -19,7 +19,7 @@ public class ApiLogEvent extends ApplicationEvent {
|
||||
private String type;
|
||||
|
||||
public ApiLogEvent(String traceId, String apiUrl, Object requestBody, Object responseBody, Double takeTime, String type) {
|
||||
super(traceId);
|
||||
super(apiUrl);
|
||||
this.traceId = traceId;
|
||||
this.apiUrl = apiUrl;
|
||||
this.requestBody = requestBody;
|
||||
|
||||
@ -88,7 +88,7 @@ public class ErrorReportAspect {
|
||||
return getTargetAnnotation(joinPoint).isAnnotationPresent(Service.class);
|
||||
}
|
||||
|
||||
private Class getTargetAnnotation(ProceedingJoinPoint joinPoint) {
|
||||
private Class<?> getTargetAnnotation(ProceedingJoinPoint joinPoint) {
|
||||
return joinPoint.getTarget().getClass();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user