From 1bcbeb098e2ebf11b70e06ac608a4d63f8ea8737 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Sun, 10 Jul 2022 15:24:54 -0700 Subject: [PATCH] Log chosen route --- src/http/routing.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/routing.zig b/src/http/routing.zig index 3b7a84e..27deb68 100644 --- a/src/http/routing.zig +++ b/src/http/routing.zig @@ -74,6 +74,7 @@ pub fn Router(comptime ServerContext: type, comptime RequestContext: type) type if (req_segments.next() != null) return error.RouteNotApplicable; + std.log.debug("selected route {s} {s}", .{ @tagName(route.method), route.path }); return route.handler(sctx, rctx, args); } };