Skip to content

Commit

Permalink
improve debug log in parallel download
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Sep 26, 2022
1 parent 5afabcc commit 6139df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parallel_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (pd *ParallelDownload) ensure() error {
}
pd.tempDir = filepath.Join(pd.tempRootDir, md5Sum(pd.url))
if pd.client.DebugLog {
pd.client.log.Debugf("use cache directory %s", pd.tempDir)
pd.client.log.Debugf("use temporary directory %s", pd.tempDir)
pd.client.log.Debugf("download with %d concurrency and %d bytes segment size", pd.concurrency, pd.segmentSize)
}
err := os.MkdirAll(pd.tempDir, os.ModePerm)
Expand Down Expand Up @@ -208,7 +208,7 @@ func (pd *ParallelDownload) mergeFile() {
break
}
if pd.client.DebugLog {
pd.client.log.Debugf("removing cache directory %s", pd.tempDir)
pd.client.log.Debugf("removing temporary directory %s", pd.tempDir)
}
err = os.RemoveAll(pd.tempDir)
if err != nil {
Expand Down

0 comments on commit 6139df8

Please sign in to comment.