mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
refactor(sentinel): 避免 sentinel 健康检查 强制检测 server
This commit is contained in:
1 parent
75549547b5
commit
d249355f05
1 file changed
+2
+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");
|
||||
|
||||
Reference in new issue
Block a user