From e6d0d2818a7380920b806ae629320500e739bd5c Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Tue, 28 Sep 2021 13:55:29 -0700 Subject: [PATCH] internal: log SubConn type if it's not the expected type (#4813) --- picker_wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picker_wrapper.go b/picker_wrapper.go index 0878ada9..e8367cb8 100644 --- a/picker_wrapper.go +++ b/picker_wrapper.go @@ -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 {