Skip to content

Commit ffd356b

Browse files
committed
chore: remove unnecessary log
1 parent 039153e commit ffd356b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/shared/pkg/grpc/channelz.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,8 @@ func sampleChannelzConnections(ctx context.Context, client channelzpb.ChannelzCl
326326
for _, subRef := range subRefs {
327327
subResp, err := client.GetSubchannel(ctx, &channelzpb.GetSubchannelRequest{SubchannelId: subRef.GetSubchannelId()})
328328
if err != nil {
329-
logger.L().Warn(ctx, "failed to get channelz subchannel, it may have been deregistered",
330-
zap.Int64("subchannel_id", subRef.GetSubchannelId()),
331-
zap.Error(err),
332-
)
333-
329+
// Subchannel was likely deregistered between GetTopChannels
330+
// and this call. Skip it; self-corrects on next poll cycle.
334331
continue
335332
}
336333

0 commit comments

Comments
 (0)