From e316a51efbea8d83a1d97da51e536c2a1ed28276 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Sun, 27 Dec 2020 22:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90log=E3=80=91=E4=BF=AE=E6=94=B9log=20ao?= =?UTF-8?q?p=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kernel/log/api/expander/LogConfigExpander.java | 10 ---------- .../modular/requestapi/aop/RequestApiLogRecordAop.java | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/kernel-d-log/log-api/src/main/java/cn/stylefeng/roses/kernel/log/api/expander/LogConfigExpander.java b/kernel-d-log/log-api/src/main/java/cn/stylefeng/roses/kernel/log/api/expander/LogConfigExpander.java index c58397a33..2f8b92033 100644 --- a/kernel-d-log/log-api/src/main/java/cn/stylefeng/roses/kernel/log/api/expander/LogConfigExpander.java +++ b/kernel-d-log/log-api/src/main/java/cn/stylefeng/roses/kernel/log/api/expander/LogConfigExpander.java @@ -35,14 +35,4 @@ public class LogConfigExpander { return ConfigContext.me().getSysConfigValueWithDefault("SYS_LOG_FILE_SAVE_PATH_LINUX", String.class, LogFileConstants.DEFAULT_FILE_SAVE_PATH_LINUX); } - /** - * 获取接口api的aop日志记录的aop的顺序 - * - * @author fengshuonan - * @date 2020/10/28 17:19 - */ - public static Integer getRequestApiLogAopSort() { - return ConfigContext.me().getSysConfigValueWithDefault("SYS_REQUEST_API_LOG_AOP_SORT", Integer.class, LogFileConstants.DEFAULT_API_LOG_AOP_SORT); - } - } diff --git a/kernel-d-log/log-business-requestapi/src/main/java/cn/stylefeng/roses/kernel/log/modular/requestapi/aop/RequestApiLogRecordAop.java b/kernel-d-log/log-business-requestapi/src/main/java/cn/stylefeng/roses/kernel/log/modular/requestapi/aop/RequestApiLogRecordAop.java index 0ca19e153..342f5fcd0 100644 --- a/kernel-d-log/log-business-requestapi/src/main/java/cn/stylefeng/roses/kernel/log/modular/requestapi/aop/RequestApiLogRecordAop.java +++ b/kernel-d-log/log-business-requestapi/src/main/java/cn/stylefeng/roses/kernel/log/modular/requestapi/aop/RequestApiLogRecordAop.java @@ -2,7 +2,7 @@ package cn.stylefeng.roses.kernel.log.modular.requestapi.aop; import cn.stylefeng.roses.kernel.log.api.LogRecordApi; import cn.stylefeng.roses.kernel.log.api.constants.LogConstants; -import cn.stylefeng.roses.kernel.log.api.expander.LogConfigExpander; +import cn.stylefeng.roses.kernel.log.api.constants.LogFileConstants; import cn.stylefeng.roses.kernel.log.api.factory.LogRecordFactory; import cn.stylefeng.roses.kernel.log.api.factory.appender.AuthedLogAppender; import cn.stylefeng.roses.kernel.log.api.factory.appender.HttpLogAppender; @@ -145,7 +145,7 @@ public class RequestApiLogRecordAop implements Ordered { @Override public int getOrder() { - return LogConfigExpander.getRequestApiLogAopSort(); + return LogFileConstants.DEFAULT_API_LOG_AOP_SORT; } /**