mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Show query arguments in http log
This commit is contained in:
parent
8a3393b0fb
commit
c806b3bf6b
1 changed files with 2 additions and 2 deletions
|
@ -37,10 +37,10 @@ namespace ProjectLighthouse {
|
||||||
|
|
||||||
// Logs every request and the response to it
|
// Logs every request and the response to it
|
||||||
// Example: "200: GET /LITTLEBIGPLANETPS3_XML/news"
|
// Example: "200: GET /LITTLEBIGPLANETPS3_XML/news"
|
||||||
// Example: "404: GET /asdasd"
|
// Example: "404: GET /asdasd?query=osucookiezi727ppbluezenithtopplayhdhr"
|
||||||
app.Use(async (context, next) => {
|
app.Use(async (context, next) => {
|
||||||
await next(); // Handle the request so we can get the status code from it
|
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();
|
app.UseRouting();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue