From f263828edc5006c939217fbddf62c8b07267f4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Sun, 5 Jan 2020 15:15:30 +0100 Subject: [PATCH] operations: write debug message when hashes could not be checked --- fs/operations/operations.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/operations/operations.go b/fs/operations/operations.go index 9a0d24ff7..3fd29ae3b 100644 --- a/fs/operations/operations.go +++ b/fs/operations/operations.go @@ -779,10 +779,12 @@ func (c *checkMarch) Match(ctx context.Context, dst, src fs.DirEntry) (recurse b atomic.AddInt32(&c.differences, 1) } else { atomic.AddInt32(&c.matches, 1) - fs.Debugf(dstX, "OK") - } - if noHash { - atomic.AddInt32(&c.noHashes, 1) + if noHash { + atomic.AddInt32(&c.noHashes, 1) + fs.Debugf(dstX, "OK - could not check hash") + } else { + fs.Debugf(dstX, "OK") + } } } else { err := errors.Errorf("is file on %v but directory on %v", c.fsrc, c.fdst)