Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Auto refresh cache ill-formatted log line (#42)
Browse files Browse the repository at this point in the history
- Log line should include the error and should be of type Errorf
  • Loading branch information
Ketan Umare authored Oct 16, 2019
1 parent 2a121b0 commit 9a5bce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/auto_refresh_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (w *autoRefreshCache) sync(ctx context.Context) {
if value, ok := w.lruMap.Peek(k); ok {
newItem, result, err := w.syncCb(ctx, value.(CacheItem))
if err != nil {
logger.Error(ctx, "failed to get latest copy of the item %v", k)
logger.Errorf(ctx, "failed to get latest copy of the item %v, error: %s", k, err)
}

if result == Update {
Expand Down

0 comments on commit 9a5bce7

Please sign in to comment.