Skip to content

Commit 103bd4b

Browse files
committed
api: Put attributes last in ResolvedAddresses.toString()
Attributes is the least likely to be relevant in general, and has the most random assortment of information. Since xds puts XdsConfig in the Attributes, moving things before the attributes can make them much easier to read in logs.
1 parent 8127619 commit 103bd4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/main/java/io/grpc/LoadBalancer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ public ResolvedAddresses build() {
337337
public String toString() {
338338
return MoreObjects.toStringHelper(this)
339339
.add("addresses", addresses)
340-
.add("attributes", attributes)
341340
.add("loadBalancingPolicyConfig", loadBalancingPolicyConfig)
341+
.add("attributes", attributes)
342342
.toString();
343343
}
344344

0 commit comments

Comments
 (0)