mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
font: improve log statements a bit
This commit is contained in:
@ -90,6 +90,8 @@ pub fn groupRef(
|
|||||||
|
|
||||||
const gop = try self.map.getOrPut(self.alloc, key);
|
const gop = try self.map.getOrPut(self.alloc, key);
|
||||||
if (gop.found_existing) {
|
if (gop.found_existing) {
|
||||||
|
log.debug("found cached GroupCache for font config", .{});
|
||||||
|
|
||||||
// We can deinit the key because we found a cached value.
|
// We can deinit the key because we found a cached value.
|
||||||
key.deinit();
|
key.deinit();
|
||||||
|
|
||||||
@ -99,6 +101,8 @@ pub fn groupRef(
|
|||||||
}
|
}
|
||||||
errdefer self.map.removeByPtr(gop.key_ptr);
|
errdefer self.map.removeByPtr(gop.key_ptr);
|
||||||
|
|
||||||
|
log.debug("initializing new GroupCache for font config", .{});
|
||||||
|
|
||||||
// A new font config, initialize the cache.
|
// A new font config, initialize the cache.
|
||||||
const cache = try self.alloc.create(GroupCache);
|
const cache = try self.alloc.create(GroupCache);
|
||||||
errdefer self.alloc.destroy(cache);
|
errdefer self.alloc.destroy(cache);
|
||||||
|
Reference in New Issue
Block a user