提交 f70d9820 authored 作者: sin's avatar sin

- adminAccessLogService 改为 systemAccessLogService

上级 c7a4a90a
...@@ -42,7 +42,7 @@ public class GlobalExceptionHandler { ...@@ -42,7 +42,7 @@ public class GlobalExceptionHandler {
private String applicationName; private String applicationName;
@Reference(validation = "true", version = "${dubbo.consumer.AdminAccessLogService.version:1.0.0}") @Reference(validation = "true", version = "${dubbo.consumer.AdminAccessLogService.version:1.0.0}")
private SystemLogService adminAccessLogService; private SystemLogService systemLogService;
// 逻辑异常 // 逻辑异常
@ResponseBody @ResponseBody
...@@ -125,7 +125,7 @@ public class GlobalExceptionHandler { ...@@ -125,7 +125,7 @@ public class GlobalExceptionHandler {
@Async @Async
public void addExceptionLog(ExceptionLogAddDTO exceptionLog) { public void addExceptionLog(ExceptionLogAddDTO exceptionLog) {
adminAccessLogService.addExceptionLog(exceptionLog); systemLogService.addExceptionLog(exceptionLog);
} }
} }
...@@ -34,7 +34,7 @@ public class AccessLogInterceptor extends HandlerInterceptorAdapter { ...@@ -34,7 +34,7 @@ public class AccessLogInterceptor extends HandlerInterceptorAdapter {
private static final ThreadLocal<Date> START_TIME = new ThreadLocal<>(); private static final ThreadLocal<Date> START_TIME = new ThreadLocal<>();
@Reference(validation = "true", version = "${dubbo.consumer.AdminAccessLogService.version:1.0.0}") @Reference(validation = "true", version = "${dubbo.consumer.AdminAccessLogService.version:1.0.0}")
private SystemLogService adminAccessLogService; private SystemLogService systemAccessLogService;
@Value("${spring.application.name}") @Value("${spring.application.name}")
private String applicationName; private String applicationName;
...@@ -89,7 +89,7 @@ public class AccessLogInterceptor extends HandlerInterceptorAdapter { ...@@ -89,7 +89,7 @@ public class AccessLogInterceptor extends HandlerInterceptorAdapter {
@Async // 异步入库 @Async // 异步入库
public void addAccessLog(AccessLogAddDTO accessLog) { public void addAccessLog(AccessLogAddDTO accessLog) {
try { try {
adminAccessLogService.addAccessLog(accessLog); systemAccessLogService.addAccessLog(accessLog);
} catch (Throwable th) { } catch (Throwable th) {
logger.error("[addAccessLog][插入访问日志({}) 发生异常({})", JSON.toJSONString(accessLog), ExceptionUtils.getRootCauseMessage(th)); logger.error("[addAccessLog][插入访问日志({}) 发生异常({})", JSON.toJSONString(accessLog), ExceptionUtils.getRootCauseMessage(th));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论