internal: log SubConn type if it's not the expected type (#4813)

This commit is contained in:
Menghan Li
2021-09-28 13:55:29 -07:00
committed by GitHub
parent 34df1b42ae
commit e6d0d2818a

View File

@ -144,7 +144,7 @@ func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer.
acw, ok := pickResult.SubConn.(*acBalancerWrapper)
if !ok {
logger.Error("subconn returned from pick is not *acBalancerWrapper")
logger.Errorf("subconn returned from pick is type %T, not *acBalancerWrapper", pickResult.SubConn)
continue
}
if t := acw.getAddrConn().getReadyTransport(); t != nil {