mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 01:41:13 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user