mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
chore: add some warning log
This commit is contained in:
parent
a034f7e11f
commit
0f07feb78b
|
@ -488,6 +488,8 @@ func NewResolver(config Config) *Resolver {
|
||||||
dnsClients: cacheTransform(nameserver),
|
dnsClients: cacheTransform(nameserver),
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
} else {
|
||||||
|
log.Warnln("can't found ruleset policy: %s", key)
|
||||||
}
|
}
|
||||||
case "geosite":
|
case "geosite":
|
||||||
inverse := false
|
inverse := false
|
||||||
|
@ -498,6 +500,7 @@ func NewResolver(config Config) *Resolver {
|
||||||
log.Debugln("adding geosite policy: %s inversed %t", key, inverse)
|
log.Debugln("adding geosite policy: %s inversed %t", key, inverse)
|
||||||
matcher, err := NewGeoSite(key)
|
matcher, err := NewGeoSite(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Warnln("adding geosite policy %s error: %s", key)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
insertTriePolicy()
|
insertTriePolicy()
|
||||||
|
@ -506,7 +509,7 @@ func NewResolver(config Config) *Resolver {
|
||||||
inverse: inverse,
|
inverse: inverse,
|
||||||
dnsClients: cacheTransform(nameserver),
|
dnsClients: cacheTransform(nameserver),
|
||||||
})
|
})
|
||||||
continue
|
continue // skip triePolicy new
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if triePolicy == nil {
|
if triePolicy == nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user