diff options
author | Simon Frei <freisim93@gmail.com> | 2022-12-21 21:58:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 21:58:35 +0100 |
commit | d157d12037c3aedcdb352b148e36cb83367c92ce (patch) | |
tree | b9303dc3fb03ac6703c32d7f39f88eccceb9a217 | |
parent | f9d68474ac1be7378aa7bfbaf2592c94a3628a58 (diff) |
lib/model: Only log at info level if setting change time fails (#8725)
-rw-r--r-- | lib/model/folder_sendrecv.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go index 6111bc4257..1269a98cde 100644 --- a/lib/model/folder_sendrecv.go +++ b/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 |