Skip to content

Commit ef94091

Browse files
committed
Address copilot's feedback.
1 parent ca379eb commit ef94091

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Components/Components/src/Routing/Router.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ private static partial class Log
351351
[LoggerMessage(1, LogLevel.Debug, $"Displaying {nameof(NotFound)} because path '{{Path}}' with base URI '{{BaseUri}}' does not match any component route", EventName = "DisplayingNotFound")]
352352
internal static partial void DisplayingNotFound(ILogger logger, string path, string baseUri);
353353

354-
[LoggerMessage(1, LogLevel.Debug, $"Displaying {nameof(NotFound)} on request", EventName = "DisplayingNotFoundOnRequest")]
355-
internal static partial void DisplayingNotFound(ILogger logger);
356-
357354
[LoggerMessage(2, LogLevel.Debug, "Navigating to component {ComponentType} in response to path '{Path}' with base URI '{BaseUri}'", EventName = "NavigatingToComponent")]
358355
internal static partial void NavigatingToComponent(ILogger logger, Type componentType, string path, string baseUri);
359356

360357
[LoggerMessage(3, LogLevel.Debug, "Navigating to non-component URI '{ExternalUri}' in response to path '{Path}' with base URI '{BaseUri}'", EventName = "NavigatingToExternalUri")]
361358
internal static partial void NavigatingToExternalUri(ILogger logger, string externalUri, string path, string baseUri);
359+
360+
[LoggerMessage(4, LogLevel.Debug, $"Displaying {nameof(NotFound)} on request", EventName = "DisplayingNotFoundOnRequest")]
361+
internal static partial void DisplayingNotFound(ILogger logger);
362362
}
363363
}

src/Components/Server/src/Circuits/RemoteNavigationManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ public static void RequestingNavigation(ILogger logger, string uri, NavigationOp
222222
[LoggerMessage(4, LogLevel.Error, "Navigation failed when changing the location to {Uri}", EventName = "NavigationFailed")]
223223
public static partial void NavigationFailed(ILogger logger, string uri, Exception exception);
224224

225-
[LoggerMessage(5, LogLevel.Error, "Failed to render NotFound", EventName = "NotFoundRenderFailed")]
226-
public static partial void NotFoundRenderFailed(ILogger logger, Exception exception);
227-
228225
[LoggerMessage(5, LogLevel.Error, "Failed to refresh", EventName = "RefreshFailed")]
229226
public static partial void RefreshFailed(ILogger logger, Exception exception);
230227

@@ -236,5 +233,8 @@ public static void RequestingNavigation(ILogger logger, string uri, NavigationOp
236233

237234
[LoggerMessage(7, LogLevel.Debug, "Navigation stopped because the session ended when navigating to {Uri}", EventName = "NavigationStoppedSessionEnded")]
238235
public static partial void NavigationStoppedSessionEnded(ILogger logger, string uri);
236+
237+
[LoggerMessage(8, LogLevel.Error, "Failed to render NotFound", EventName = "NotFoundRenderFailed")]
238+
public static partial void NotFoundRenderFailed(ILogger logger, Exception exception);
239239
}
240240
}

src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private static partial class Log
114114
[LoggerMessage(2, LogLevel.Error, "Navigation failed when changing the location to {Uri}", EventName = "NavigationFailed")]
115115
public static partial void NavigationFailed(ILogger logger, string uri, Exception exception);
116116

117-
[LoggerMessage(5, LogLevel.Error, "Failed to render NotFound", EventName = "NotFoundRenderFailed")]
117+
[LoggerMessage(3, LogLevel.Error, "Failed to render NotFound", EventName = "NotFoundRenderFailed")]
118118
public static partial void NotFoundRenderFailed(ILogger logger, Exception exception);
119119
}
120120
}

0 commit comments

Comments
 (0)