From 2b8af4d23f7d288e3bf6f6c108e978699db6dd07 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 3 Apr 2023 11:53:51 +0100 Subject: [PATCH] sync,copy,move: make sure we output a debug log on start of transfer Before this change we weren't outputing a debug log on the start of a transfer for files which existed on the source but not in the destination. This was different to the single file copy routine. --- fs/sync/sync.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/sync/sync.go b/fs/sync/sync.go index 95a49ab2f..f3da4adf3 100644 --- a/fs/sync/sync.go +++ b/fs/sync/sync.go @@ -407,6 +407,7 @@ func (s *syncCopyMove) pairRenamer(in *pipe, out *pipe, fraction int, wg *sync.W src := pair.Src if !s.tryRename(src) { // pass on if not renamed + fs.Debugf(src, "Need to transfer - No matching file found at Destination") ok = out.Put(s.ctx, pair) if !ok { return @@ -1026,6 +1027,7 @@ func (s *syncCopyMove) SrcOnly(src fs.DirEntry) (recurse bool) { } if !NoNeedTransfer { // No need to check since doesn't exist + fs.Debugf(src, "Need to transfer - File not found at Destination") ok := s.toBeUploaded.Put(s.ctx, fs.ObjectPair{Src: x, Dst: nil}) if !ok { return