Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
steviebps committed Jul 2, 2023
1 parent 09ae21f commit 30d5306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/cacheable.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ func (c *CacheableStorage) Get(ctx context.Context, logicalPath string) (*Storag
if err != nil {
var nfError *NotFoundError
// cache layer is expected to have missing records so let's only log other errors
if !errors.As(err, &nfError) {
logger.Error("cache", "miss", err.Error())
if errors.As(err, &nfError) {
logger.Debug("cache", "miss", err.Error())
} else {
logger.Debug("cache", "error", err.Error())
logger.Error("cache", "error", err.Error())
}
}

Expand Down

0 comments on commit 30d5306

Please sign in to comment.