refactor(sentinel): 避免 sentinel 健康检查 强制检测 server

This commit is contained in:
冷冷 committed 2025-03-09 20:54:46 +08:00
1 parent 9101357f44
commit f076fd7e2c
1 file changed
+2
@@ -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");