pass in the request when no matching is found to the warn logger (#1182)

This commit is contained in:
Jason Landbridge authored and GitHub committed 2024-09-27 19:10:39 +02:00
1 parent 697411555a
commit 95994421ae
1 file changed
+2 -2
+2 -2
View File
@@ -126,7 +126,7 @@ namespace WireMock.Owin
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 @@ namespace WireMock.Owin
}
}
}
}
}