Skip to content

Commit 74fa25a

Browse files
committed
Fix ArgumentException in FindLogEntries
1 parent 9c94324 commit 74fa25a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/WireMock.Net/Server/WireMockServer.LogEntries.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ public IReadOnlyList<ILogEntry> FindLogEntries(params IRequestMatcher[] matchers
3333
{
3434
Guard.NotNull(matchers);
3535

36-
var results = new Dictionary<LogEntry, RequestMatchResult>();
36+
var results = new Dictionary<ILogEntry, RequestMatchResult>();
3737

38-
foreach (var log in _options.LogEntries.ToArray())
38+
var allLogEntries = LogEntries;
39+
foreach (var log in allLogEntries)
3940
{
4041
var requestMatchResult = new RequestMatchResult();
4142
foreach (var matcher in matchers)

0 commit comments

Comments
 (0)