From 2dd66e9e83572677919f5a75f81e83275b224c5d Mon Sep 17 00:00:00 2001 From: finalt Date: Thu, 4 Jan 2024 15:16:51 +0800 Subject: [PATCH] fix warn log (#2559) --- cluster/router/condition/dynamic_router.go | 4 ++-- cluster/router/tag/router.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster/router/condition/dynamic_router.go b/cluster/router/condition/dynamic_router.go index c02d0a09de..106825a01d 100644 --- a/cluster/router/condition/dynamic_router.go +++ b/cluster/router/condition/dynamic_router.go @@ -124,7 +124,7 @@ func (s *ServiceRouter) Notify(invokers []protocol.Invoker) { dynamicConfiguration := conf.GetEnvInstance().GetDynamicConfiguration() if dynamicConfiguration == nil { - logger.Warnf("config center does not start, please check if the configuration center has been properly configured in dubbogo.yml") + logger.Infof("Config center does not start, Condition router will not be enabled") return } key := strings.Join([]string{url.ColonSeparatedKey(), constant.ConditionRouterRuleSuffix}, "") @@ -183,7 +183,7 @@ func (a *ApplicationRouter) Notify(invokers []protocol.Invoker) { if providerApplicaton != a.application { dynamicConfiguration := conf.GetEnvInstance().GetDynamicConfiguration() if dynamicConfiguration == nil { - logger.Warnf("config center does not start, please check if the configuration center has been properly configured in dubbogo.yml") + logger.Infof("Config center does not start, Condition router will not be enabled") return } diff --git a/cluster/router/tag/router.go b/cluster/router/tag/router.go index 3475d7f180..efe77aedd1 100644 --- a/cluster/router/tag/router.go +++ b/cluster/router/tag/router.go @@ -84,7 +84,7 @@ func (p *PriorityRouter) Notify(invokers []protocol.Invoker) { } dynamicConfiguration := conf.GetEnvInstance().GetDynamicConfiguration() if dynamicConfiguration == nil { - logger.Warnf("config center does not start, please check if the configuration center has been properly configured in dubbogo.yml") + logger.Infof("Config center does not start, Tag router will not be enabled") return } key := strings.Join([]string{application, constant.TagRouterRuleSuffix}, "")