Skip to content

Commit 190c568

Browse files
committed
[Fixes #1183] Race condition in RouteBase.EnsureLoggers
1 parent e727101 commit 190c568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Routing/src/RouteBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ private void EnsureLoggers(HttpContext context)
262262
if (_logger == null)
263263
{
264264
var factory = context.RequestServices.GetRequiredService<ILoggerFactory>();
265-
_logger = factory.CreateLogger(typeof(RouteBase).FullName);
266265
_constraintLogger = factory.CreateLogger(typeof(RouteConstraintMatcher).FullName);
266+
_logger = factory.CreateLogger(typeof(RouteBase).FullName);
267267
}
268268
}
269269

0 commit comments

Comments
 (0)