🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Add tracing log to Cover service
Deluanfa378ab4e499
diff --git a/engine/cover.go b/engine/cover.goindex 13ac1ede1..172329dbd 100644--- a/engine/cover.go+++ b/engine/cover.go@@ -55,6 +55,7 @@ func (c *cover) Get(ctx context.Context, id string, size int, out io.Writer) err}defer r.Close()if w != nil {+ log.Trace(ctx, "Image cache miss", "path", path, "size", size, "lastUpdate", lastUpdate)go func() {defer w.Close()reader, err := c.getCover(ctx, path, size)@@ -64,6 +65,8 @@ func (c *cover) Get(ctx context.Context, id string, size int, out io.Writer) err}io.Copy(w, reader)}()+ } else {+ log.Trace(ctx, "Loading image from cache", "path", path, "size", size, "lastUpdate", lastUpdate)}_, err = io.Copy(out, r)