ftp: lower log message priority when SetModTime is not supported to debug

See: https://forum.rclone.org/t/ftp-fritz-box-setmodtime-is-not-supported/37781
This commit is contained in:
Tobias Gion 2023-04-25 16:31:42 +02:00 committed by GitHub
parent 232d304c13
commit c4a9e480c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1098,7 +1098,7 @@ func (o *Object) ModTime(ctx context.Context) time.Time {
// SetModTime sets the modification time of the object
func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error {
if !o.fs.fSetTime {
fs.Errorf(o.fs, "SetModTime is not supported")
fs.Debugf(o.fs, "SetModTime is not supported")
return nil
}
c, err := o.fs.getFtpConnection(ctx)