Skip to content

Commit

Permalink
Merge #29140
Browse files Browse the repository at this point in the history
29140: kv: silence spammy log r=a-robinson a=tschottdorf

This can fill pages of logs when a cluster starts, especially when it
never manages to connect go Gossip.

Release note: None

Co-authored-by: Tobias Schottdorf <[email protected]>
  • Loading branch information
craig[bot] and tbg committed Aug 29, 2018
2 parents d57a1f0 + 23f961e commit de31594
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/kv/dist_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit de31594

Please sign in to comment.