🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
fix(server): add logs to public image endpoint
Deluan9d86f63f15b6
diff --git a/server/public/handle_images.go b/server/public/handle_images.goindex a6b306c9b..f178692f8 100644--- a/server/public/handle_images.go+++ b/server/public/handle_images.go@@ -25,12 +25,14 @@ func (pub *Router) handleImages(w http.ResponseWriter, r *http.Request) {p := req.Params(r)id, _ := p.String(":id")if id == "" {+ log.Warn(r, "No id provided")http.Error(w, "invalid id", http.StatusBadRequest)return}artId, err := decodeArtworkID(id)if err != nil {+ log.Error(r, "Error decoding artwork id", "id", id, err)http.Error(w, err.Error(), http.StatusBadRequest)return}