diff --git a/src/font/GroupCacheSet.zig b/src/font/GroupCacheSet.zig index 4ab97ce02..51719306c 100644 --- a/src/font/GroupCacheSet.zig +++ b/src/font/GroupCacheSet.zig @@ -90,6 +90,8 @@ pub fn groupRef( const gop = try self.map.getOrPut(self.alloc, key); if (gop.found_existing) { + log.debug("found cached GroupCache for font config", .{}); + // We can deinit the key because we found a cached value. key.deinit(); @@ -99,6 +101,8 @@ pub fn groupRef( } errdefer self.map.removeByPtr(gop.key_ptr); + log.debug("initializing new GroupCache for font config", .{}); + // A new font config, initialize the cache. const cache = try self.alloc.create(GroupCache); errdefer self.alloc.destroy(cache);