From 4924ac2f173fd9a4cedb7a78ae9165daeb19c627 Mon Sep 17 00:00:00 2001 From: remusb Date: Sat, 17 Mar 2018 11:55:55 +0200 Subject: [PATCH] cache: reduce log level for plex api - for #2102 --- backend/cache/plex.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/cache/plex.go b/backend/cache/plex.go index 0bc40901a..a9395a3ce 100644 --- a/backend/cache/plex.go +++ b/backend/cache/plex.go @@ -136,7 +136,7 @@ func (p *plexConnector) isPlaying(co *Object) bool { if cr, yes := p.f.isWrappedByCrypt(); yes { remote, err = cr.DecryptFileName(co.Remote()) if err != nil { - fs.Errorf("plex", "can not decrypt wrapped file: %v", err) + fs.Debugf("plex", "can not decrypt wrapped file: %v", err) return false } } @@ -166,23 +166,23 @@ func (p *plexConnector) isPlaying(co *Object) bool { } videosGen, ok := get(data, "MediaContainer", "Video") if !ok { - fs.Errorf("plex", "empty videos: %v", data) + fs.Debugf("plex", "empty videos: %v", data) return false } videos, ok := videosGen.([]interface{}) if !ok || len(videos) < 1 { - fs.Errorf("plex", "empty videos: %v", data) + fs.Debugf("plex", "empty videos: %v", data) return false } for _, v := range videos { keyGen, ok := get(v, "key") if !ok { - fs.Errorf("plex", "failed to find: key") + fs.Debugf("plex", "failed to find: key") continue } key, ok := keyGen.(string) if !ok { - fs.Errorf("plex", "failed to understand: key") + fs.Debugf("plex", "failed to understand: key") continue } req, err := http.NewRequest("GET", fmt.Sprintf("%s%s", p.url.String(), key), nil)