Yep
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Shogi.Api
|
||||
|
||||
app.UseWhen(
|
||||
// Log anything that isn't related to swagger.
|
||||
context => ShouldLog(context),
|
||||
context => IsNotSwaggerUI(context),
|
||||
appBuilder => appBuilder.UseHttpLogging());
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
@@ -69,7 +69,7 @@ namespace Shogi.Api
|
||||
|
||||
app.Run();
|
||||
|
||||
static bool ShouldLog(HttpContext context)
|
||||
static bool IsNotSwaggerUI(HttpContext context)
|
||||
{
|
||||
var path = context.Request.GetEncodedPathAndQuery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user