Skip to content

Commit 0629618

Browse files
authored
Merge pull request #208 from weaveworks/log-cache-keys
Make sure cache key is readable in log
2 parents de1015e + 88f8454 commit 0629618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/leveltriggered/caching.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func newGC(caches cachesInterface, logger logr.Logger) *gc {
360360
}
361361

362362
func (gc *gc) register(key clusterAndGVK) {
363-
gc.log.Info("cache key registered for GC", "key", key)
363+
gc.log.Info("cache key registered for GC", "key", key.String())
364364
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.
365365
}
366366

0 commit comments

Comments
 (0)