all: Ignore Sync errors on directories (fixes #4432)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4449
This commit is contained in:
Audrius Butkevicius
2017-10-21 22:00:46 +00:00
committed by Jakob Borg
parent b1ade6d0c0
commit 622b614f31
3 changed files with 3 additions and 19 deletions

View File

@@ -96,7 +96,7 @@ func (f *FolderConfiguration) CreateMarker() error {
}
if dir, err := fs.Open("."); err == nil {
if serr := dir.Sync(); err != nil {
l.Infof("fsync %q failed: %v", ".", serr)
l.Debugln("fsync %q failed: %v", ".", serr)
}
} else {
l.Infof("fsync %q failed: %v", ".", err)