add debug line on cdp buffer growth

This commit is contained in:
Karl Seguin
2025-08-29 10:55:36 +08:00
parent efc983b009
commit 1ebac06f4b

View File

@@ -785,6 +785,8 @@ fn growBuffer(allocator: Allocator, buf: []u8, required_capacity: usize) ![]u8 {
if (new_capacity >= required_capacity) break;
}
log.debug(.app, "CDP buffer growth", .{ .from = buf.len, .to = new_capacity });
if (allocator.resize(buf, new_capacity)) {
return buf.ptr[0..new_capacity];
}