Skip to content

Commit

Permalink
fsstore: don't warn on cache miss
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Feb 8, 2024
1 parent 830d808 commit 49c7840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/fsstore/fsstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func New(dir string, log *slog.Logger) *Store {
func (s *Store) Get(key string) ([]byte, bool) {
val, err := s.fs.ReadFile(keyToFilename(key))
if errors.Is(err, fs.ErrNotExist) {
s.logger.Warn("file does not exist", "file", keyToFilename(key))
s.logger.Debug("file does not exist", "file", keyToFilename(key))
return nil, false
} else if err != nil {
s.logger.Error("failed to open file", "file", keyToFilename(key), "err", err)
Expand Down Expand Up @@ -59,7 +59,7 @@ func (s *Store) GetAll() [][]byte {
if errors.Is(err, fs.ErrNotExist) {
return nil
} else if err != nil {
s.logger.Warn("failed to read dir", "err", err)
s.logger.Debug("failed to read dir", "err", err)
return nil
}
for _, f := range files {
Expand Down

0 comments on commit 49c7840

Please sign in to comment.