From e65f96fa6bcb4161365d03854a6c33e684352d37 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Wed, 3 Mar 2021 22:56:12 +0000 Subject: [PATCH] output debug message when ACAutomatonDomainMatcher is enabled. --- app/router/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/router/config.go b/app/router/config.go index 540e6b2e8..85ff45879 100644 --- a/app/router/config.go +++ b/app/router/config.go @@ -73,8 +73,9 @@ func (rr *RoutingRule) BuildCondition() (Condition, error) { case "ac": matcher, err := NewACAutomatonDomainMatcher(rr.Domain) if err != nil { - return nil, newError("failed to build domain condition").Base(err) + return nil, newError("failed to build domain condition with ACAutomatonDomainMatcher").Base(err) } + newError("ACAutomatonDomainMatcher is enabled for ", len(rr.Domain), "domain rules(s)").AtDebug().WriteToLog() conds.Add(matcher) default: matcher, err := NewDomainMatcher(rr.Domain)