Add more info in logs
This commit is contained in:
@@ -84,7 +84,7 @@ func (gf *GetFile) HandleGetRequest(directory, torrentName, fileName string, res
|
||||
actualExt := filepath.Ext(unrestrict.Filename)
|
||||
expectedExt := filepath.Ext(fileName)
|
||||
if actualExt != expectedExt && unrestrict.Streamable != 1 {
|
||||
log.Warnf("File was changed and is not streamable: %s and %s", fileName, unrestrict.Filename)
|
||||
log.Warnf("File was changed and is not streamable: %s and %s (link=%s)", fileName, unrestrict.Filename, unrestrict.Link)
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
return
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user