Skip to content

Commit 7cfff88

Browse files
committed
Fixup
1 parent ec42ef8 commit 7cfff88

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Hosting/Hosting/src/Internal/HostingLoggerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Microsoft.AspNetCore.Hosting
99
{
10-
internal static partial class HostingLoggerExtensions
10+
internal static class HostingLoggerExtensions
1111
{
1212
public static void ApplicationError(this ILogger logger, Exception exception)
1313
{

src/Http/Routing/src/Matching/DfaMatcher.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ public sealed override Task MatchAsync(HttpContext httpContext)
5757
{
5858
if (log)
5959
{
60-
Logger.CandidatesNotFound(_logger, path);
60+
Log.CandidatesNotFound(_logger, path);
6161
}
6262

6363
return Task.CompletedTask;
6464
}
6565

6666
if (log)
6767
{
68-
Logger.CandidatesFound(_logger, path, candidates);
68+
Log.CandidatesFound(_logger, path, candidates);
6969
}
7070

7171
var policyCount = policies.Length;
@@ -169,11 +169,11 @@ public sealed override Task MatchAsync(HttpContext httpContext)
169169
{
170170
if (isMatch)
171171
{
172-
Logger.CandidateValid(_logger, path, candidate.Endpoint);
172+
Log.CandidateValid(_logger, path, candidate.Endpoint);
173173
}
174174
else
175175
{
176-
Logger.CandidateNotValid(_logger, path, candidate.Endpoint);
176+
Log.CandidateNotValid(_logger, path, candidate.Endpoint);
177177
}
178178
}
179179
}
@@ -277,7 +277,7 @@ private bool ProcessComplexSegments(
277277
var text = path.AsSpan(segment.Start, segment.Length);
278278
if (!RoutePatternMatcher.MatchComplexSegment(complexSegment, text, values))
279279
{
280-
Logger.CandidateRejectedByComplexSegment(_logger, path, endpoint, complexSegment);
280+
Log.CandidateRejectedByComplexSegment(_logger, path, endpoint, complexSegment);
281281
return false;
282282
}
283283
}
@@ -296,7 +296,7 @@ private bool ProcessConstraints(
296296
var constraint = constraints[i];
297297
if (!constraint.Value.Match(httpContext, NullRouter.Instance, constraint.Key, values, RouteDirection.IncomingRequest))
298298
{
299-
Logger.CandidateRejectedByConstraint(_logger, httpContext.Request.Path, endpoint, constraint.Key, constraint.Value, values[constraint.Key]);
299+
Log.CandidateRejectedByConstraint(_logger, httpContext.Request.Path, endpoint, constraint.Key, constraint.Value, values[constraint.Key]);
300300
return false;
301301
}
302302
}
@@ -323,7 +323,7 @@ private async Task SelectEndpointWithPoliciesAsync(
323323
await _selector.SelectAsync(httpContext, candidateSet);
324324
}
325325

326-
private static partial class Logger
326+
private static partial class Log
327327
{
328328
[LoggerMessage(1000, LogLevel.Debug,
329329
"No candidates found for the request path '{Path}'",

0 commit comments

Comments
 (0)