mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
✨ Introducing new features. 关闭 sentinel record 相关日志
This commit is contained in:
1 parent
fe38975d36
commit
aa69ef4574
2 files changed
+4
No files matched your search
+2
@@ -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
|
||||
Reference in new issue
Block a user