From ed2a57fcc965befe4d99a0994febc600b997f10c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 25 Jan 2023 01:09:05 -0800 Subject: Add log --- src/install/lockfile.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig index 6690e1d3f..273aec901 100644 --- a/src/install/lockfile.zig +++ b/src/install/lockfile.zig @@ -1883,6 +1883,8 @@ pub const Package = extern struct { } }; + const debug = Output.scoped(.Lockfile, true); + pub fn clone( this_: *const Lockfile.Package, old: *Lockfile, @@ -1895,6 +1897,7 @@ pub const Package = extern struct { const old_extern_string_buf = old.buffers.extern_strings.items; var builder_ = new.stringBuilder(); var builder = &builder_; + debug("Clone: {s}@{any} ({s}, {d} dependencies)", .{ this.name.slice(old_string_buf), this.resolution.fmt(old_string_buf), @tagName(this.resolution.tag), this.dependencies.len }); builder.count(this.name.slice(old_string_buf)); this.resolution.count(old_string_buf, *Lockfile.StringBuilder, builder); -- cgit v1.2.3