Log download link instead

This commit is contained in:
Ben Sarmiento
2024-01-26 13:33:02 +01:00
parent 0609e64234
commit b72514c25e

View File

@@ -157,9 +157,9 @@ func (dl *Downloader) streamFileToResponse(torrent *intTor.Torrent, file *intTor
} }
if torrent != nil { if torrent != nil {
log.Debugf("Opening file %s from torrent %s (%s)%s", file.Path, torMgr.GetKey(torrent), unrestrict.Link, rangeLog) log.Debugf("Opening file %s from torrent %s (%s)%s", unrestrict.Download, torMgr.GetKey(torrent), unrestrict.Link, rangeLog)
} else { } else {
log.Debugf("Opening file %s (%s)%s", file.Path, unrestrict.Link, rangeLog) log.Debugf("Opening file %s (%s)%s", unrestrict.Download, unrestrict.Link, rangeLog)
} }
download, err := dl.client.Do(dlReq) download, err := dl.client.Do(dlReq)