operations: debug successful hashes as well as failures #3419

This commit is contained in:
Nick Craig-Wood 2019-08-13 16:43:24 +01:00
parent eb087a3b04
commit 93228dfcc9

View file

@ -89,6 +89,8 @@ func checkHashes(ctx context.Context, src fs.ObjectInfo, dst fs.Object, ht hash.
if srcHash != dstHash {
fs.Debugf(src, "%v = %s (%v)", ht, srcHash, src.Fs())
fs.Debugf(dst, "%v = %s (%v)", ht, dstHash, dst.Fs())
} else {
fs.Debugf(src, "%v = %s OK", ht, srcHash)
}
return srcHash == dstHash, ht, srcHash, dstHash, nil
}