Skip to content

Commit 0df5b8a

Browse files
authored
Fix log message place holder (#53009)
`ParentComponentId` is duplicated in `Microsoft.AspNetCore.Components.RenderTree.Renderer+Log.InitializingChildComponent`.
1 parent b330f9c commit 0df5b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Components/src/RenderTree/Renderer.Log.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal static class Log
1616
private static readonly LogDefineOptions SkipEnabledCheckLogOptions = new() { SkipEnabledCheck = true };
1717

1818
private static readonly Action<ILogger, int, Type, int, Type, Exception> _initializingChildComponent =
19-
LoggerMessage.Define<int, Type, int, Type>(LogLevel.Debug, new EventId(1, "InitializingChildComponent"), "Initializing component {ComponentId} ({ComponentType}) as child of {ParentComponentId} ({ParentComponentId})", SkipEnabledCheckLogOptions);
19+
LoggerMessage.Define<int, Type, int, Type>(LogLevel.Debug, new EventId(1, "InitializingChildComponent"), "Initializing component {ComponentId} ({ComponentType}) as child of {ParentComponentId} ({ParentComponentType})", SkipEnabledCheckLogOptions);
2020

2121
private static readonly Action<ILogger, int, Type, Exception> _initializingRootComponent =
2222
LoggerMessage.Define<int, Type>(LogLevel.Debug, new EventId(2, "InitializingRootComponent"), "Initializing root component {ComponentId} ({ComponentType})", SkipEnabledCheckLogOptions);

0 commit comments

Comments
 (0)