operations: debug successful hashes as well as failures #3419
This commit is contained in:
parent
eb087a3b04
commit
93228dfcc9
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ func checkHashes(ctx context.Context, src fs.ObjectInfo, dst fs.Object, ht hash.
|
||||||
if srcHash != dstHash {
|
if srcHash != dstHash {
|
||||||
fs.Debugf(src, "%v = %s (%v)", ht, srcHash, src.Fs())
|
fs.Debugf(src, "%v = %s (%v)", ht, srcHash, src.Fs())
|
||||||
fs.Debugf(dst, "%v = %s (%v)", ht, dstHash, dst.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
|
return srcHash == dstHash, ht, srcHash, dstHash, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue