From 4c667d04e1db695f98195d3e5195bb3780265a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Fri, 19 Apr 2024 21:42:57 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=90=84=E7=A7=8D=E4=BE=9D=E8=B5=96=E7=9A=84=E5=9C=B0=E6=96=B9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=80=A0=E6=88=90=20BeanPostProcessorChecker?= =?UTF-8?q?=20=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pigx/common/log/init/ApplicationLoggerInitializer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/init/ApplicationLoggerInitializer.java b/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/init/ApplicationLoggerInitializer.java index b83b17226..03f868d29 100644 --- a/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/init/ApplicationLoggerInitializer.java +++ b/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/init/ApplicationLoggerInitializer.java @@ -22,6 +22,9 @@ public class ApplicationLoggerInitializer implements EnvironmentPostProcessor, O System.setProperty("logging.file.name", String.format("%s/%s/debug.log", logBase, appName)); // 避免 sentinel 1.8.4+ 心跳日志过大 System.setProperty("csp.sentinel.log.level", "OFF"); + // 避免各种依赖的地方组件造成 BeanPostProcessorChecker 警告 + System.setProperty("logging.level.org.springframework.context.support.PostProcessorRegistrationDelegate", + "ERROR"); } @Override