chore: add log

This commit is contained in:
Skyxim 2022-12-05 19:48:54 +08:00
parent 46d23d9b86
commit dcbe25c3ae

View file

@ -509,8 +509,10 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
func getRules(metadata *C.Metadata) []C.Rule {
if sr, ok := subRules[metadata.SpecialRules]; ok {
log.Debugln("[Rule] use %s rules", metadata.SpecialRules)
return sr
} else {
log.Debugln("[Rule] use default rules")
return rules
}
}