mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Better log message
This commit is contained in:
parent
c031167bb1
commit
d9d0a97674
1 changed files with 2 additions and 2 deletions
|
@ -74,13 +74,13 @@ func (h *Handler) getImageList(ctx context.Context) ([]string, error) {
|
|||
req, _ := http.NewRequestWithContext(ctx, http.MethodGet, buildPath(ndImageServiceURL, "index.yml"), nil)
|
||||
resp, err := c.Do(req)
|
||||
if err != nil {
|
||||
log.Warn(ctx, "Could not get list from image service", err)
|
||||
log.Warn(ctx, "Could not get background images from image service", err)
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
dec := yaml.NewDecoder(resp.Body)
|
||||
err = dec.Decode(&h.list)
|
||||
log.Debug(ctx, "Loaded images from image service", "total", len(h.list), "elapsed", time.Since(start))
|
||||
log.Debug(ctx, "Loaded background images from image service", "total", len(h.list), "elapsed", time.Since(start))
|
||||
return h.list, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue