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

This commit is contained in:
Jason Landbridge
2024-09-27 19:10:39 +02:00
committed by GitHub
parent 697411555a
commit 95994421ae

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
}
}
}
}
}