Merge pull request #1131 from owncloud/reduce-thumbnails-logs

reduce warn logs
This commit is contained in:
Benedikt Kulmann
2020-12-17 20:47:10 +01:00
committed by GitHub
@@ -41,7 +41,7 @@ func (s *FileSystem) Get(username string, key string) []byte {
img := filepath.Join(userDir, key)
content, err := ioutil.ReadFile(img)
if err != nil {
s.logger.Warn().Err(err).Msgf("could not read file %s", key)
s.logger.Debug().Str("err", err.Error()).Str("key", key).Msg("could not load thumbnail from store")
return nil
}
return content