Ignore errors when marking torrent as repaired (also mute warnings when under repair)

This commit is contained in:
Ben Sarmiento
2024-05-24 18:00:46 +02:00
parent 6d07645361
commit 7695412b22
4 changed files with 9 additions and 18 deletions

View File

@@ -51,7 +51,7 @@ func (dl *Downloader) DownloadFile(
file, ok := torrent.SelectedFiles.Get(fileName)
if !ok || !file.State.Is("ok_file") {
log.Warnf("Cannot find file %s from path %s", fileName, req.URL.Path)
// log.Warnf("Cannot find file %s from path %s", fileName, req.URL.Path)
http.Error(resp, "File not found", http.StatusNotFound)
return
}