mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-13 16:22:45 +02:00
pass in the request when no matching is found to the warn logger (#1182)
This commit is contained in:
@@ -126,7 +126,7 @@ namespace WireMock.Owin
|
|||||||
if (targetMapping == null)
|
if (targetMapping == null)
|
||||||
{
|
{
|
||||||
logRequest = true;
|
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);
|
response = ResponseMessageBuilder.Create(HttpStatusCode.NotFound, WireMockConstants.NoMatchingFound);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -357,4 +357,4 @@ namespace WireMock.Owin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user