diff options
| author | 2023-05-21 21:30:05 -0700 | |
|---|---|---|
| committer | 2023-05-21 21:30:05 -0700 | |
| commit | 24e0c269d21e6f61e84d782e6ae318561f419f63 (patch) | |
| tree | 5707bc672e4fb3a5a14fb497079e08a609d389b7 /src | |
| parent | 9f935c4683e30f40e7c85087d42ab44e65b3c907 (diff) | |
| download | bun-24e0c269d21e6f61e84d782e6ae318561f419f63.tar.gz bun-24e0c269d21e6f61e84d782e6ae318561f419f63.tar.zst bun-24e0c269d21e6f61e84d782e6ae318561f419f63.zip | |
[internal] Even more logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/bun.js/api/server.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index 7a4fd4552..59410d0cb 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -1373,6 +1373,8 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp .method = HTTP.Method.which(req.method()) orelse .GET, .server = server, }; + + ctxLog("create<d> ({*})<r>", .{this}); } pub fn isDeadRequest(this: *RequestContext) bool { @@ -1471,7 +1473,7 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp // This function may be called multiple times // so it's important that we can safely do that pub fn finalizeWithoutDeinit(this: *RequestContext) void { - ctxLog("finalizeWithoutDeinit", .{}); + ctxLog("finalizeWithoutDeinit<d> ({*})<r>", .{this}); this.blob.detach(); if (comptime Environment.allow_assert) { @@ -1541,14 +1543,14 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp } } pub fn finalize(this: *RequestContext) void { - ctxLog("finalize", .{}); + ctxLog("finalize<d> ({*})<r>", .{this}); this.finalizeWithoutDeinit(); this.markComplete(); this.deinit(); } pub fn deinit(this: *RequestContext) void { - ctxLog("deinit", .{}); + ctxLog("deinit<d> ({*})<r>", .{this}); if (comptime Environment.allow_assert) std.debug.assert(this.finalized); |
