From c806b3bf6b210a387ef79c7fa051af19fd5f7a54 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 6 Oct 2021 13:51:48 -0400 Subject: [PATCH] Show query arguments in http log --- ProjectLighthouse/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/Startup.cs b/ProjectLighthouse/Startup.cs index 9aabd7d0..f8ecda62 100644 --- a/ProjectLighthouse/Startup.cs +++ b/ProjectLighthouse/Startup.cs @@ -37,10 +37,10 @@ namespace ProjectLighthouse { // Logs every request and the response to it // Example: "200: GET /LITTLEBIGPLANETPS3_XML/news" - // Example: "404: GET /asdasd" + // Example: "404: GET /asdasd?query=osucookiezi727ppbluezenithtopplayhdhr" app.Use(async (context, next) => { await next(); // Handle the request so we can get the status code from it - Console.WriteLine($"{context.Response.StatusCode}: {context.Request.Method} {context.Request.Path}"); + Console.WriteLine($"{context.Response.StatusCode}: {context.Request.Method} {context.Request.Path}{context.Request.QueryString}"); }); app.UseRouting();