From 9a5bce7eefea457c69f22c1d8a7397ec24a94e7e Mon Sep 17 00:00:00 2001 From: Ketan Umare Date: Wed, 16 Oct 2019 13:27:25 -0700 Subject: [PATCH] Auto refresh cache ill-formatted log line (#42) - Log line should include the error and should be of type Errorf --- utils/auto_refresh_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/auto_refresh_cache.go b/utils/auto_refresh_cache.go index d7d07a1..9a72d22 100644 --- a/utils/auto_refresh_cache.go +++ b/utils/auto_refresh_cache.go @@ -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 {