✨ Introducing new features. 关闭 sentinel  record 相关日志

This commit is contained in:
lbw committed 2023-09-01 14:33:06 +08:00
1 parent fe38975d36
commit aa69ef4574
2 files changed
+4

No files matched your search

@@ -20,6 +20,8 @@ public class ApplicationLoggerInitializer implements EnvironmentPostProcessor, O
// spring boot admin 直接加载日志
System.setProperty("logging.file.name", String.format("%s/%s/debug.log", logBase, appName));
// 避免 sentinel 1.8.4+ 心跳日志过大
System.setProperty("csp.sentinel.log.level", "OFF");
}
@Override
@@ -0,0 +1,2 @@
org.springframework.boot.env.EnvironmentPostProcessor=\
com.pig4cloud.pigx.common.log.init.ApplicationLoggerInitializer