From f076fd7e2c04371c21c58d3e3b10aa970ca94afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Mon, 16 Dec 2024 14:19:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(sentinel):=20=E9=81=BF=E5=85=8D=20sent?= =?UTF-8?q?inel=20=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=20=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=E6=A3=80=E6=B5=8B=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pigx/common/log/init/ApplicationLoggerInitializer.java | 2 ++ 1 file changed, 2 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 03f868d29..3c7c59572 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,8 @@ 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"); + // 避免 sentinel 健康检查 server + System.setProperty("management.health.sentinel.enabled", "false"); // 避免各种依赖的地方组件造成 BeanPostProcessorChecker 警告 System.setProperty("logging.level.org.springframework.context.support.PostProcessorRegistrationDelegate", "ERROR");