diff --git a/src/WireMock.Net/Owin/WireMockMiddleware.cs b/src/WireMock.Net/Owin/WireMockMiddleware.cs index cb389c43..a5445344 100644 --- a/src/WireMock.Net/Owin/WireMockMiddleware.cs +++ b/src/WireMock.Net/Owin/WireMockMiddleware.cs @@ -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; } @@ -357,4 +357,4 @@ private void TryRemoveLogEntry(LogEntry logEntry) } } } -} \ No newline at end of file +}