mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #1182] [MERGED] pass in the request when no matching is found to the warn logger #1272
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/1182
Author: @JasonLandbridge
Created: 9/27/2024
Status: ✅ Merged
Merged: 9/27/2024
Merged by: @StefH
Base:
master← Head:patch-1📝 Commits (1)
ef7caf0pass in the request when no matching is found to the warn logger📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/WireMock.Net/Owin/WireMockMiddleware.cs(+2 -2)📄 Description
Hi there,
Coming back to this issue: #1086
I wound a way to regain the functionality by creating a custom logger and then throw exceptions once it matches. So:
This works, however it would be great if I also get the request object to see which url I have not mapped yet and or has changed from a previous match. This is why I pass in the request into the warn log
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.