From b07acdb03db982ee688a7ba204ee953da794836e Mon Sep 17 00:00:00 2001 From: David Christofas Date: Thu, 17 Dec 2020 17:25:33 +0100 Subject: [PATCH] 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. --- thumbnails/pkg/thumbnail/storage/filesystem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thumbnails/pkg/thumbnail/storage/filesystem.go b/thumbnails/pkg/thumbnail/storage/filesystem.go index 4bf2a297a..f586e17bb 100644 --- a/thumbnails/pkg/thumbnail/storage/filesystem.go +++ b/thumbnails/pkg/thumbnail/storage/filesystem.go @@ -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