operations: write debug message when hashes could not be checked
This commit is contained in:
parent
b7019a91c2
commit
f263828edc
1 changed files with 6 additions and 4 deletions
|
@ -779,10 +779,12 @@ func (c *checkMarch) Match(ctx context.Context, dst, src fs.DirEntry) (recurse b
|
||||||
atomic.AddInt32(&c.differences, 1)
|
atomic.AddInt32(&c.differences, 1)
|
||||||
} else {
|
} else {
|
||||||
atomic.AddInt32(&c.matches, 1)
|
atomic.AddInt32(&c.matches, 1)
|
||||||
fs.Debugf(dstX, "OK")
|
if noHash {
|
||||||
}
|
atomic.AddInt32(&c.noHashes, 1)
|
||||||
if noHash {
|
fs.Debugf(dstX, "OK - could not check hash")
|
||||||
atomic.AddInt32(&c.noHashes, 1)
|
} else {
|
||||||
|
fs.Debugf(dstX, "OK")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err := errors.Errorf("is file on %v but directory on %v", c.fsrc, c.fdst)
|
err := errors.Errorf("is file on %v but directory on %v", c.fsrc, c.fdst)
|
||||||
|
|
Loading…
Add table
Reference in a new issue