Skip to content

Commit

Permalink
🔊 Add sync data fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 28, 2023
1 parent b9c9f50 commit b5171ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ func (repo *Repo) uploadCloudMissingObjects(trafficStat *TrafficStat, context ma
info, statErr := os.Stat(absFilePath)
if nil != statErr {
// 本地没有该文件,忽略
logging.LogWarnf("cloud missing object [%s] not found: %s", missingObject, statErr)
continue
}

Expand Down Expand Up @@ -856,12 +857,15 @@ func (repo *Repo) uploadCloudMissingObjects(trafficStat *TrafficStat, context ma
if nil != uoErr {
uploadErr = uoErr
err = uploadErr
logging.LogErrorf("upload cloud missing object [%s] failed: %s", filePath, uploadErr)
return
}

fixed = append(fixed, objectPath)
logging.LogInfof("upload cloud missing object [%s] success", filePath)
})
if nil != err {
logging.LogWarnf("upload cloud missing objects failed: %s", err)
return
}

Expand Down

0 comments on commit b5171ad

Please sign in to comment.