mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 00:40:03 +01:00
fs: add size to JSON logs when moving or copying an object #6849
This commit is contained in:
parent
ab746ef891
commit
46484022b0
@ -500,10 +500,9 @@ func Copy(ctx context.Context, f fs.Fs, dst fs.Object, remote string, src fs.Obj
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if newDst != nil && src.String() != newDst.String() {
|
if newDst != nil && src.String() != newDst.String() {
|
||||||
fs.Infof(src, "%s to: %s", actionTaken, newDst.String())
|
actionTaken = fmt.Sprintf("%s to: %s", actionTaken, newDst.String())
|
||||||
} else {
|
|
||||||
fs.Infof(src, actionTaken)
|
|
||||||
}
|
}
|
||||||
|
fs.Infof(src, "%s%s", actionTaken, fs.LogValueHide("size", fs.SizeSuffix(src.Size())))
|
||||||
return newDst, err
|
return newDst, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user