From a3f6fe5287f353de7bdd9cd85b14902c006b3240 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 16 Jun 2020 11:40:35 +0100 Subject: [PATCH] dedupe: fix logging to be easier to understand #4321 --- fs/operations/dedupe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/operations/dedupe.go b/fs/operations/dedupe.go index 963155376..799a4fac9 100644 --- a/fs/operations/dedupe.go +++ b/fs/operations/dedupe.go @@ -316,7 +316,7 @@ func Deduplicate(ctx context.Context, f fs.Fs, mode DeduplicateMode) error { for remote, objs := range files { 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) if len(objs) <= 1 { fs.Logf(remote, "All duplicates removed") @@ -342,7 +342,7 @@ func Deduplicate(ctx context.Context, f fs.Fs, mode DeduplicateMode) error { sortSmallestFirst(objs) dedupeDeleteAllButOne(ctx, 0, remote, objs) case DeduplicateSkip: - // skip + fs.Logf(remote, "Skipping %d files with duplicate names", len(objs)) default: //skip }