forked from TrueCloudLab/rclone
dedupe: fix logging to be easier to understand #4321
This commit is contained in:
parent
8d85c51a28
commit
a3f6fe5287
1 changed files with 2 additions and 2 deletions
|
@ -316,7 +316,7 @@ func Deduplicate(ctx context.Context, f fs.Fs, mode DeduplicateMode) error {
|
||||||
|
|
||||||
for remote, objs := range files {
|
for remote, objs := range files {
|
||||||
if len(objs) > 1 {
|
if len(objs) > 1 {
|
||||||
fs.Logf(remote, "Found %d duplicates - deleting identical copies", len(objs))
|
fs.Logf(remote, "Found %d files with duplicate names", len(objs))
|
||||||
objs = dedupeDeleteIdentical(ctx, ht, remote, objs)
|
objs = dedupeDeleteIdentical(ctx, ht, remote, objs)
|
||||||
if len(objs) <= 1 {
|
if len(objs) <= 1 {
|
||||||
fs.Logf(remote, "All duplicates removed")
|
fs.Logf(remote, "All duplicates removed")
|
||||||
|
@ -342,7 +342,7 @@ func Deduplicate(ctx context.Context, f fs.Fs, mode DeduplicateMode) error {
|
||||||
sortSmallestFirst(objs)
|
sortSmallestFirst(objs)
|
||||||
dedupeDeleteAllButOne(ctx, 0, remote, objs)
|
dedupeDeleteAllButOne(ctx, 0, remote, objs)
|
||||||
case DeduplicateSkip:
|
case DeduplicateSkip:
|
||||||
// skip
|
fs.Logf(remote, "Skipping %d files with duplicate names", len(objs))
|
||||||
default:
|
default:
|
||||||
//skip
|
//skip
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue