You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/11/06 07:10:26 UTC

[dubbo] branch 3.0 updated: [3.0] Print consumerURL parameters in ServiceAddressURL (#9221)

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

albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new c51c1e8  [3.0] Print consumerURL parameters in ServiceAddressURL (#9221)
c51c1e8 is described below

commit c51c1e852e46d878f414b787b891a137bf6c543c
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Sat Nov 6 15:10:14 2021 +0800

    [3.0] Print consumerURL parameters in ServiceAddressURL (#9221)
---
 .../org/apache/dubbo/common/url/component/ServiceAddressURL.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/ServiceAddressURL.java b/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/ServiceAddressURL.java
index 619c6c9..8c36d90 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/ServiceAddressURL.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/ServiceAddressURL.java
@@ -254,4 +254,10 @@ public abstract class ServiceAddressURL extends URL {
         }
         return super.equals(obj);
     }
+
+    @Override
+    public String toString() {
+        URLParam totalParam = getUrlParam().addParametersIfAbsent(consumerURL.getParameters());
+        return new ServiceConfigURL(getUrlAddress(), totalParam, null).toString();
+    }
 }