From b2ad6da36477328344caac09afb77edb5688bae7 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Thu, 5 Oct 2017 23:27:55 -0400 Subject: [PATCH] Add 'retrying' to the log message for clarity --- src/duplicacy_chunkdownloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duplicacy_chunkdownloader.go b/src/duplicacy_chunkdownloader.go index d1da10e..ade7c3a 100644 --- a/src/duplicacy_chunkdownloader.go +++ b/src/duplicacy_chunkdownloader.go @@ -335,7 +335,7 @@ func (downloader *ChunkDownloader) Download(threadIndex int, task ChunkDownloadT err = chunk.Decrypt(downloader.config.ChunkKey, task.chunkHash) if err != nil { if downloadAttempt < MaxDownloadAttempts { - LOG_WARN("RETRY_DOWNLOAD", "Failed to decrypt the chunk %s: %v", chunkID, err) + LOG_WARN("RETRY_DOWNLOAD", "Failed to decrypt the chunk %s: %v; retrying", chunkID, err) chunk.Reset(false) continue } else { @@ -347,7 +347,7 @@ func (downloader *ChunkDownloader) Download(threadIndex int, task ChunkDownloadT actualChunkID := chunk.GetID() if actualChunkID != chunkID { if downloadAttempt < MaxDownloadAttempts { - LOG_WARN("RETRY_DOWNLOAD", "The chunk %s has a hash id of %s", chunkID, actualChunkID) + LOG_WARN("RETRY_DOWNLOAD", "The chunk %s has a hash id of %s; retrying", chunkID, actualChunkID) chunk.Reset(false) continue } else {