include robots url in debug log

This commit is contained in:
Muki Kiboigo
2026-02-04 11:03:34 -08:00
parent 1a246f2e38
commit e4f250435d

View File

@@ -314,7 +314,7 @@ fn robotsHeaderCallback(transfer: *Http.Transfer) !bool {
const ctx: *RobotsRequestContext = @ptrCast(@alignCast(transfer.ctx)); const ctx: *RobotsRequestContext = @ptrCast(@alignCast(transfer.ctx));
if (transfer.response_header) |hdr| { if (transfer.response_header) |hdr| {
log.debug(.browser, "robots status", .{ .status = hdr.status }); log.debug(.browser, "robots status", .{ .status = hdr.status, .robots_url = ctx.robots_url });
ctx.status = hdr.status; ctx.status = hdr.status;
} }