From 0f07feb78b5b0064bb55669b29230e80212dc030 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Thu, 23 Nov 2023 10:39:29 +0800 Subject: [PATCH] chore: add some warning log --- dns/resolver.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dns/resolver.go b/dns/resolver.go index 368f0b41..fa11830e 100644 --- a/dns/resolver.go +++ b/dns/resolver.go @@ -488,6 +488,8 @@ func NewResolver(config Config) *Resolver { dnsClients: cacheTransform(nameserver), }) continue + } else { + log.Warnln("can't found ruleset policy: %s", key) } case "geosite": inverse := false @@ -498,6 +500,7 @@ func NewResolver(config Config) *Resolver { log.Debugln("adding geosite policy: %s inversed %t", key, inverse) matcher, err := NewGeoSite(key) if err != nil { + log.Warnln("adding geosite policy %s error: %s", key) continue } insertTriePolicy() @@ -506,7 +509,7 @@ func NewResolver(config Config) *Resolver { inverse: inverse, dnsClients: cacheTransform(nameserver), }) - continue + continue // skip triePolicy new } } if triePolicy == nil {