Skip to content

Commit

Permalink
feat: log when cache updates didn't update the cache
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Dec 2, 2024
1 parent 881fcaf commit 34e6439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ func (c *Cache[T]) Update(data T) {
c.updateCounter.Inc()
metrics.CacheUpdates.Inc()
c.persistToFile()
lumber.Done(strings.ToUpper(c.name), "cache updated")
lumber.Done(strings.ToUpper(c.name), "cache UPDATED")
} else {
lumber.Info(c.name, "refreshed; data didn't change")
}
}

Expand Down

0 comments on commit 34e6439

Please sign in to comment.