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

This commit is contained in:
冷冷 committed 2024-12-16 14:19:56 +08:00
1 parent 75549547b5
commit d249355f05
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");