AlexStocks commented on code in PR #3021:
URL: https://github.com/apache/dubbo-go/pull/3021#discussion_r2347143590


##########
registry/directory/directory.go:
##########
@@ -367,7 +367,7 @@ func (dir *RegistryDirectory) toGroupInvokers() 
[]protocolbase.Invoker {
                        clusterKey := 
dir.GetURL().SubURL.GetParam(constant.ClusterKey, constant.DefaultCluster)
                        cluster, err := extension.GetCluster(clusterKey)
                        if err != nil {
-                               logger.Errorf("directory get cluster %s error, 
error message is %s, will skip this group",
+                               logger.Errorf("directory get cluster %s error, 
error message is %w, will skip this group",

Review Comment:
   改为 %w 后,err.Error() 后面的 Error() 可以不用要了



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to