Skip to content

Commit 34c1ec6

Browse files
committed
move more logs to WARN level
Signed-off-by: Juncen Yu <[email protected]>
1 parent 7bc112f commit 34c1ec6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

br/pkg/backup/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ func (bc *Client) findTargetPeer(ctx context.Context, key []byte, isRawKv bool,
10611061
// better backoff.
10621062
region, err := bc.mgr.GetPDClient().GetRegion(ctx, key)
10631063
if err != nil || region == nil {
1064-
logutil.CL(ctx).Error("find region failed", zap.Error(err), zap.Reflect("region", region))
1064+
logutil.CL(ctx).Warn("find region failed", zap.Error(err), zap.Reflect("region", region))
10651065
time.Sleep(time.Millisecond * time.Duration(mathutil.Min(i*100, 3000)))
10661066
continue
10671067
}

br/pkg/checkpoint/checkpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func (r *CheckpointRunner[K, V]) startCheckpointFlushLoop(ctx context.Context, w
374374
func (r *CheckpointRunner[K, V]) sendError(err error) {
375375
select {
376376
case r.errCh <- err:
377-
log.Error("send the error", zap.String("category", "checkpoint"), zap.Error(err))
377+
log.Warn("send the error", zap.String("category", "checkpoint"), zap.Error(err))
378378
r.errLock.Lock()
379379
r.err = err
380380
r.errLock.Unlock()

0 commit comments

Comments
 (0)