[PSM Interop] Do not dump full Channel/Subchannel into logs (#33105)
Before this change, `Found subchannel in state READY` and `Channel to xds:///psm-grpc-server:61404 transitioned to state ` would dump the full channel/subchannel, in some implementations that expose ChannelData.trace (f.e. go) would add 300 extra lines of log. Now we print a brief repr-like chanel/subchannel info: ``` Found subchannel in state READY: <Subchannel subchannel_id=9 target=10.110.1.44:8080 state=READY> Channel to xds:///psm-grpc-server:61404 transitioned to state READY: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=READY> ``` Also while waiting for the channel, we log channel_id now too: ``` Waiting to report a READY channel to xds:///psm-grpc-server:61404 Server channel: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=TRANSIENT_FAILURE> Server channel: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=TRANSIENT_FAILURE> Server channel: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=TRANSIENT_FAILURE> Server channel: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=TRANSIENT_FAILURE> Server channel: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=TRANSIENT_FAILURE> Server channel: <Channel channel_id=2 target=xds:///psm-grpc-server:61404 state=READY> ```pull/33128/head
parent
5bd38df3c2
commit
691a5fba87
2 changed files with 25 additions and 9 deletions
Loading…
Reference in new issue