Skip to content

Commit

Permalink
Auto refresh cache ill-formatted log line (flyteorg#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 dbe7ff1 commit 066b600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytestdlib/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 066b600

Please sign in to comment.