Skip to content

Commit

Permalink
chore: add some warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Nov 23, 2023
1 parent 37791ac commit 7d15ce2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dns/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand All @@ -506,7 +509,7 @@ func NewResolver(config Config) *Resolver {
inverse: inverse,
dnsClients: cacheTransform(nameserver),
})
continue
continue // skip triePolicy new
}
}
if triePolicy == nil {
Expand Down

0 comments on commit 7d15ce2

Please sign in to comment.