diff --git a/pkg/kv/dist_sender.go b/pkg/kv/dist_sender.go index 6ad18977c3a0..8f9fa14d5ee1 100644 --- a/pkg/kv/dist_sender.go +++ b/pkg/kv/dist_sender.go @@ -341,9 +341,11 @@ func (ds *DistSender) getNodeDescriptor() *roachpb.NodeDescriptor { return nodeDesc } } - ctx := ds.AnnotateCtx(context.TODO()) - log.Infof(ctx, "unable to determine this node's attributes for replica "+ - "selection; node is most likely bootstrapping") + if log.V(1) { + ctx := ds.AnnotateCtx(context.TODO()) + log.Infof(ctx, "unable to determine this node's attributes for replica "+ + "selection; node is most likely bootstrapping") + } return nil }