Repair logs
This commit is contained in:
@@ -80,7 +80,7 @@ func (gf *GetFile) HandleGetRequest(directory, torrentName, fileName string, res
|
||||
file.Link = "repairing"
|
||||
torMgr.Repair(torrent)
|
||||
} else {
|
||||
log.Info("Repair is disabled, skipping repair for unavailable file")
|
||||
log.Infof("Repair is disabled, skipping repair for unavailable file %s (link=%s)", fileName, link)
|
||||
}
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
return
|
||||
@@ -172,7 +172,7 @@ func (gf *GetFile) streamFileToResponse(torrent *intTor.Torrent, file *intTor.Fi
|
||||
file.Link = "repairing"
|
||||
torMgr.Repair(torrent)
|
||||
} else {
|
||||
log.Info("Repair is disabled, skipping repair for unavailable file")
|
||||
log.Infof("Repair is disabled, skipping repair for unavailable file %s (link=%s)", file.Path, file.Link)
|
||||
}
|
||||
}
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
@@ -187,7 +187,7 @@ func (gf *GetFile) streamFileToResponse(torrent *intTor.Torrent, file *intTor.Fi
|
||||
file.Link = "repairing"
|
||||
torMgr.Repair(torrent)
|
||||
} else {
|
||||
log.Info("Repair is disabled, skipping repair for unavailable file")
|
||||
log.Infof("Repair is disabled, skipping repair for unavailable file %s (link=%s)", file.Path, file.Link)
|
||||
}
|
||||
}
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
|
||||
Reference in New Issue
Block a user