@@ -151,7 +151,7 @@ func (stats *Reporter) Start(ctx context.Context, stopper *stop.Stopper) {
151
151
if err := stats .update (
152
152
ctx , & constraintsSaver , & replStatsSaver , & criticalLocSaver ,
153
153
); err != nil {
154
- log .Dev .Errorf (ctx , "failed to generate replication reports: %s" , err )
154
+ log .KvDistribution .Errorf (ctx , "failed to generate replication reports: %s" , err )
155
155
}
156
156
}
157
157
timer .Reset (interval )
@@ -230,7 +230,7 @@ func (stats *Reporter) update(
230
230
& constraintConfVisitor , & localityStatsVisitor , & replicationStatsVisitor ,
231
231
); err != nil {
232
232
if errors .HasType (err , (* visitorError )(nil )) {
233
- log .Dev .Errorf (ctx , "some reports have not been generated: %s" , err )
233
+ log .KvDistribution .Errorf (ctx , "some reports have not been generated: %s" , err )
234
234
} else {
235
235
return errors .Wrap (err , "failed to compute constraint conformance report" )
236
236
}
@@ -270,7 +270,7 @@ func (stats *Reporter) meta1LeaseHolderStore(ctx context.Context) *kvserver.Stor
270
270
return nil
271
271
}
272
272
if err != nil {
273
- log .Dev .Fatalf (ctx , "unexpected error when visiting stores: %s" , err )
273
+ log .KvDistribution .Fatalf (ctx , "unexpected error when visiting stores: %s" , err )
274
274
}
275
275
if repl .OwnsValidLease (ctx , store .Clock ().NowAsClockTimestamp ()) {
276
276
return store
@@ -707,7 +707,7 @@ func (r *meta2RangeIter) readBatch(ctx context.Context) (retErr error) {
707
707
defer func () { r .handleErr (ctx , retErr ) }()
708
708
709
709
if len (r .buffer ) > 0 {
710
- log .Dev .Fatalf (ctx , "buffer not exhausted: %d keys remaining" , len (r .buffer ))
710
+ log .KvDistribution .Fatalf (ctx , "buffer not exhausted: %d keys remaining" , len (r .buffer ))
711
711
}
712
712
if r .txn == nil {
713
713
r .txn = r .db .NewTxn (ctx , "rangeStoreImpl" )
@@ -755,7 +755,7 @@ func (r *meta2RangeIter) handleErr(ctx context.Context, err error) {
755
755
return
756
756
}
757
757
if errors .HasType (err , (* kvpb .TransactionRetryWithProtoRefreshError )(nil )) {
758
- log .Dev .Warningf (ctx , "unexpected retryable error from " +
758
+ log .KvDistribution .Warningf (ctx , "unexpected retryable error from " +
759
759
"read-only transaction with fixed read timestamp: %s" , err )
760
760
}
761
761
if r .txn != nil {
0 commit comments