Skip to content

Commit

Permalink
Change some log level to avoid confusion (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: wayblink <[email protected]>
  • Loading branch information
wayblink authored Aug 17, 2023
1 parent 79a8cea commit 63f26c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/backup_impl_create_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ func (b *BackupContext) executeCreateBackup(ctx context.Context, request *backup
delete(segmentDict, sid)
filledSegments = append(filledSegments, seg)
} else {
log.Warn("this may be new segments after flush, skip it", zap.Int64("id", sid))
log.Debug("this may be new segments after flush, skip it", zap.Int64("id", sid))
}
}
for _, seg := range segmentEntitiesBeforeFlush {
Expand All @@ -440,7 +440,7 @@ func (b *BackupContext) executeCreateBackup(ctx context.Context, request *backup
delete(segmentDict, sid)
filledSegments = append(filledSegments, seg)
} else {
log.Warn("this may be old segments before flush, skip it", zap.Int64("id", sid))
log.Debug("this may be old segments before flush, skip it", zap.Int64("id", sid))
}
}
if len(segmentDict) > 0 {
Expand Down Expand Up @@ -728,11 +728,11 @@ func (b *BackupContext) readSegmentInfo(ctx context.Context, collecitonID int64,
var size int64 = 0
var rootPath string

if b.params.MinioCfg.RootPath != "" {
rootPath = fmt.Sprintf("%s/", b.params.MinioCfg.RootPath)
} else {
rootPath = ""
}
if b.params.MinioCfg.RootPath != "" {
rootPath = fmt.Sprintf("%s/", b.params.MinioCfg.RootPath)
} else {
rootPath = ""
}

insertPath := fmt.Sprintf("%s%s/%v/%v/%v/", rootPath, "insert_log", collecitonID, partitionID, segmentID)
log.Debug("insertPath", zap.String("insertPath", insertPath))
Expand Down

0 comments on commit 63f26c6

Please sign in to comment.