refactor(log): filter (#816)

This commit is contained in:
Ljcbaby
2025-07-25 11:33:27 +08:00
committed by GitHub
parent e8a1ed638a
commit 358e4d851e
5 changed files with 104 additions and 165 deletions

View File

@@ -82,6 +82,9 @@ func InitConfig() {
if !conf.Conf.Force {
confFromEnv()
}
if len(conf.Conf.Log.Filter.Filters) == 0 {
conf.Conf.Log.Filter.Enable = false
}
// convert abs path
convertAbsPath := func(path *string) {
if !filepath.IsAbs(*path) {