Skip to content

Commit

Permalink
Merge pull request #208 from weaveworks/log-cache-keys
Browse files Browse the repository at this point in the history
Make sure cache key is readable in log
  • Loading branch information
squaremo authored Nov 7, 2023
2 parents de1015e + 88f8454 commit 0629618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/leveltriggered/caching.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func newGC(caches cachesInterface, logger logr.Logger) *gc {
}

func (gc *gc) register(key clusterAndGVK) {
gc.log.Info("cache key registered for GC", "key", key)
gc.log.Info("cache key registered for GC", "key", key.String())
gc.queue.Add(key) // NB not rate limited. Though, this is called when the key is introduced, so it shouldn't matter one way or the other.
}

Expand Down

0 comments on commit 0629618

Please sign in to comment.