Skip to content

Commit

Permalink
🎨 Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 16, 2023
1 parent 3e7c9f7 commit 0674d36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,11 @@ func (repo *Repo) index(memo string, context map[string]interface{}) (ret *entit
eventbus.Publish(eventbus.EvtIndexBeforeWalkData, context, repo.DataPath)
err = filepath.Walk(repo.DataPath, func(path string, info os.FileInfo, err error) error {
if nil != err {
logging.LogErrorf("walk data failed: %s", err)
if os.IsNotExist(err) {
// An error `Failed to create data snapshot` is occasionally reported during automatic data sync https://github.com/siyuan-note/siyuan/issues/8998
return nil
}

logging.LogErrorf("walk data failed: %s", err)
return err
}
if ignored, ignoreResult := repo.builtInIgnore(info, path); ignored || nil != ignoreResult {
Expand Down

0 comments on commit 0674d36

Please sign in to comment.