Skip to content

Commit

Permalink
pass in the request when no matching is found to the warn logger
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLandbridge authored Sep 27, 2024
1 parent 6974115 commit ef7caf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WireMock.Net/Owin/WireMockMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private async Task InvokeInternalAsync(IContext ctx)
if (targetMapping == null)
{
logRequest = true;
_options.Logger.Warn("HttpStatusCode set to 404 : No matching mapping found");
_options.Logger.Warn("HttpStatusCode set to 404 : No matching mapping found", ctx.Request);
response = ResponseMessageBuilder.Create(HttpStatusCode.NotFound, WireMockConstants.NoMatchingFound);
return;
}
Expand Down Expand Up @@ -357,4 +357,4 @@ private void TryRemoveLogEntry(LogEntry logEntry)
}
}
}
}
}

0 comments on commit ef7caf0

Please sign in to comment.