Skip to content

Commit

Permalink
optimize cache missing log
Browse files Browse the repository at this point in the history
  • Loading branch information
wubin48435 committed Jan 3, 2025
1 parent 7ced5ac commit 31e1d9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/database/cacheradapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package database

import (
"context"
"github.com/unionj-cloud/toolkit/zlogger"

"github.com/pkg/errors"
"github.com/unionj-cloud/toolkit/caches"
Expand All @@ -28,6 +29,7 @@ func (c *CacherAdapter) Get(key string) *caches.Query {
result := new(caches.Query)
_, err := c.marshaler.Get(context.Background(), key, result)
if err != nil {
zlogger.Info().Msgf("Cache missing: key %s %s\n", key, err.Error())
return nil
}
return result
Expand Down

0 comments on commit 31e1d9e

Please sign in to comment.