Remove redundant log

This commit is contained in:
Ben Sarmiento
2024-02-05 03:51:12 +01:00
parent c8bbfc8650
commit bc67dc2d5d

View File

@@ -306,7 +306,6 @@ func (t *TorrentManager) redownloadTorrent(torrent *Torrent, selection string) (
if selection == "" { if selection == "" {
// only delete the old torrent if we are redownloading all files // only delete the old torrent if we are redownloading all files
oldTorrentIDs = torrent.DownloadedIDs.Union(torrent.InProgressIDs).ToSlice() oldTorrentIDs = torrent.DownloadedIDs.Union(torrent.InProgressIDs).ToSlice()
t.log.Debugf("Redownloading torrent %s with all files (torrents=%v)", t.GetKey(torrent), oldTorrentIDs)
tmpSelection := "" tmpSelection := ""
torrent.SelectedFiles.IterCb(func(_ string, file *File) { torrent.SelectedFiles.IterCb(func(_ string, file *File) {
tmpSelection += fmt.Sprintf("%d,", file.ID) // select all files tmpSelection += fmt.Sprintf("%d,", file.ID) // select all files