diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index 725b4ab..440fcf3 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -72,6 +72,11 @@ func (c *Cache[T]) Update(data T) { var updated bool c.mutex.Lock() if !reflect.DeepEqual(data, c.data) { + lumber.Debug("caches are not the same for", c.Name) + old, _ := json.Marshal(c.data) + lumber.Debug("old cache:", string(old)) + new, _ := json.Marshal(data) + lumber.Debug("new cache:", string(new)) c.data = data c.updated = time.Now() updated = true