From 10aac2003075d9ae3893e357fd0b11051cbb39b6 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Thu, 7 Dec 2023 15:16:53 +0100 Subject: [PATCH] Add more info in logs --- internal/universal/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/universal/get.go b/internal/universal/get.go index a22b4fe..d8b5e53 100644 --- a/internal/universal/get.go +++ b/internal/universal/get.go @@ -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 {