enhance: Reduce unnessary log in binlog_io (#30625)

Signed-off-by: wayblink <anyang.wang@zilliz.com>
This commit is contained in:
wayblink 2024-02-18 16:50:51 +08:00 committed by GitHub
parent 5bb28a9ea4
commit 6c89609de7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,7 +61,9 @@ func (b *BinlogIoImpl) Download(ctx context.Context, paths []string) ([][]byte,
log.Debug("BinlogIO download", zap.String("path", path))
err = retry.Do(ctx, func() error {
val, err = b.Read(ctx, path)
log.Warn("BinlogIO fail to download", zap.String("path", path), zap.Error(err))
if err != nil {
log.Warn("BinlogIO fail to download", zap.String("path", path), zap.Error(err))
}
return err
})