Browse Source

lib/model: Only log at info level if setting change time fails (#8725)

Simon Frei 2 years ago
parent
commit
d157d12037
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lib/model/folder_sendrecv.go

+ 5 - 1
lib/model/folder_sendrecv.go

@@ -1778,7 +1778,11 @@ loop:
 				// use this change time to check for changes to xattrs etc
 				// on next scan.
 				if err := f.updateFileInfoChangeTime(&job.file); err != nil {
-					l.Warnf("Error updating metadata for %v at database commit: %v", job.file.Name, err)
+					// This means on next scan the likely incorrect change time
+					// (resp. whatever caused the error) will cause this file to
+					// change. Log at info level to leave a trace if a user
+					// notices, but no need to warn
+					l.Infof("Error updating metadata for %v at database commit: %v", job.file.Name, err)
 				}
 			}
 			job.file.Sequence = 0