This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch release-3.1
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/release-3.1 by this push:
     new 2dd66e9e8 fix warn log (#2559)
2dd66e9e8 is described below

commit 2dd66e9e83572677919f5a75f81e83275b224c5d
Author: finalt <[email protected]>
AuthorDate: Thu Jan 4 15:16:51 2024 +0800

    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 c02d0a09d..106825a01 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 3475d7f18..efe77aedd 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}, "")

Reply via email to