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();