From 85e7576311add01a4ccd8eb73185db90a9e2d5e6 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 20 Apr 2021 15:44:28 -0700 Subject: [PATCH] fix --- src/croc/croc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/croc/croc.go b/src/croc/croc.go index 2a8d2818..1c41c6d6 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -225,6 +225,7 @@ func (c *Client) sendCollectFiles(options TransferOptions) (err error) { log.Debugf("%+v", c.FilesToTransfer[i]) } c.FilesToTransfer[i].Hash, err = utils.HashFile(fullPath, c.Options.HashAlgorithm) + log.Debugf("hashed %s to %x using %s", fullPath, c.FilesToTransfer[i].Hash, c.Options.HashAlgorithm) totalFilesSize += fstats.Size() if err != nil { return @@ -1261,6 +1262,7 @@ func (c *Client) updateIfRecipientHasFileInfo() (err error) { } log.Debugf("%s %+x %+x %+v", fileInfo.Name, fileHash, fileInfo.Hash, errHash) if !bytes.Equal(fileHash, fileInfo.Hash) { + log.Debugf("hashed %s to %x using %s", fileInfo.Name, fileHash, c.Options.HashAlgorithm) log.Debugf("hashes are not equal %x != %x", fileHash, fileInfo.Hash) if errHash == nil && !c.Options.Overwrite && errRecipientFile == nil { log.Debug("asking to overwrite")