core: Override SubchannelImpl.toString() (#3265)

LoadBalancer may log subchannels. This makes the logs more informative.
This commit is contained in:
Kun Zhang 2017-07-21 17:13:35 -07:00 committed by GitHub
parent db279eb3c1
commit 0fb0fda3e1
1 changed files with 5 additions and 0 deletions

View File

@ -940,5 +940,10 @@ public final class ManagedChannelImpl extends ManagedChannel implements WithLogI
public Attributes getAttributes() { public Attributes getAttributes() {
return attrs; return attrs;
} }
@Override
public String toString() {
return subchannel.getLogId().toString();
}
} }
} }