From f70d9820474231002e7a8a603fa8dd6bdf9d69cc Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 23 May 2019 09:45:42 +0800 Subject: [PATCH] =?UTF-8?q?-=20adminAccessLogService=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=20systemAccessLogService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/spring/boot/web/handler/GlobalExceptionHandler.java | 4 ++-- .../spring/boot/web/interceptor/AccessLogInterceptor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/handler/GlobalExceptionHandler.java b/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/handler/GlobalExceptionHandler.java index e61a9b957..748b4add3 100644 --- a/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/handler/GlobalExceptionHandler.java +++ b/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/handler/GlobalExceptionHandler.java @@ -42,7 +42,7 @@ public class GlobalExceptionHandler { private String applicationName; @Reference(validation = "true", version = "${dubbo.consumer.AdminAccessLogService.version:1.0.0}") - private SystemLogService adminAccessLogService; + private SystemLogService systemLogService; // 逻辑异常 @ResponseBody @@ -125,7 +125,7 @@ public class GlobalExceptionHandler { @Async public void addExceptionLog(ExceptionLogAddDTO exceptionLog) { - adminAccessLogService.addExceptionLog(exceptionLog); + systemLogService.addExceptionLog(exceptionLog); } } diff --git a/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/interceptor/AccessLogInterceptor.java b/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/interceptor/AccessLogInterceptor.java index 46c90c6e1..fed0d679b 100644 --- a/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/interceptor/AccessLogInterceptor.java +++ b/common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/interceptor/AccessLogInterceptor.java @@ -34,7 +34,7 @@ public class AccessLogInterceptor extends HandlerInterceptorAdapter { private static final ThreadLocal START_TIME = new ThreadLocal<>(); @Reference(validation = "true", version = "${dubbo.consumer.AdminAccessLogService.version:1.0.0}") - private SystemLogService adminAccessLogService; + private SystemLogService systemAccessLogService; @Value("${spring.application.name}") private String applicationName; @@ -89,7 +89,7 @@ public class AccessLogInterceptor extends HandlerInterceptorAdapter { @Async // 异步入库 public void addAccessLog(AccessLogAddDTO accessLog) { try { - adminAccessLogService.addAccessLog(accessLog); + systemAccessLogService.addAccessLog(accessLog); } catch (Throwable th) { logger.error("[addAccessLog][插入访问日志({}) 发生异常({})", JSON.toJSONString(accessLog), ExceptionUtils.getRootCauseMessage(th)); }