From eefa5b365baa4d8898faf3eeedf11ebdf45a79ee Mon Sep 17 00:00:00 2001 From: dingo Date: Fri, 30 Jan 2026 14:47:40 -0500 Subject: [PATCH] .. --- Program.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Program.cs b/Program.cs index 5591d59..8852bce 100644 --- a/Program.cs +++ b/Program.cs @@ -218,6 +218,17 @@ app.MapGet("/health/ready", async (IRedisManager rm, HealthCheckService hc) => catch { return Results.StatusCode(503); } }); +app.Use(async (ctx, next) => +{ + app.Logger.LogInformation("REQ {Method} {Scheme}://{Host}{Path} CookieHdrLen={Len}", + ctx.Request.Method, + ctx.Request.Scheme, + ctx.Request.Host.Value, + ctx.Request.Path.Value, + ctx.Request.Headers.Cookie.ToString().Length); + + await next(); +}); // ---- Session middleware (must be before routing) ---- app.UseSession();