update - 调整API 及 Service 日志记录

This commit is contained in:
wangli 2024-04-07 11:19:21 +08:00
parent fc6ac8f310
commit c5df82ee22
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();
}