Procházet zdrojové kódy

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

Simon Frei před 2 roky
rodič
revize
d157d12037
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  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