Skip to content

Commit

Permalink
don't log not found error (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz authored Apr 10, 2022
1 parent 8cb3118 commit c7bec8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,9 @@ func (w *Worker) checkRecommendCacheTimeout(userId string, categories []string)
var err error
activeTime, err = w.cacheClient.Get(cache.Key(cache.LastModifyUserTime, userId)).Time()
if err != nil {
base.Logger().Error("failed to read meta", zap.Error(err))
if !errors.IsNotFound(err) {
base.Logger().Error("failed to read meta", zap.Error(err))
}
return true
}
// read recommend time
Expand Down

0 comments on commit c7bec8b

Please sign in to comment.