reduce warn logs

When we try to load the thumbnail from the store for the first time we expect it to fail so we shouldn't log with level warn.
This commit is contained in:
David Christofas
2020-12-17 17:25:33 +01:00
parent 53382a8734
commit b07acdb03d

View File

@@ -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