From 13a733bf39415a1df6a85ddcf61d07c86d21fe8d Mon Sep 17 00:00:00 2001 From: Loweel Date: Sat, 3 May 2025 15:36:41 +0200 Subject: [PATCH] Added some log --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 7547b9e..b31194c 100644 --- a/main.go +++ b/main.go @@ -42,7 +42,8 @@ func main() { requestedFile := filepath.Clean(r.URL.Path) isAudio := strings.HasPrefix(requestedFile, "/audio/") isCover := strings.HasPrefix(requestedFile, "/covers/") - + // logghiamo che succede + log.Println("Richiesta da: ", r.UserAgent(), " per ", r.RequestURI) if isAudio || isCover { // Servi il file richiesto http.ServeFile(w, r, filepath.Join(".", requestedFile))