diff --git a/src/Core/src/Platform/iOS/MauiWKWebView.cs b/src/Core/src/Platform/iOS/MauiWKWebView.cs index d93c4a6ae20b..ae3b9c35d3b9 100644 --- a/src/Core/src/Platform/iOS/MauiWKWebView.cs +++ b/src/Core/src/Platform/iOS/MauiWKWebView.cs @@ -128,14 +128,14 @@ async Task LoadUrlAsync(string? url) if (!LoadFile(url)) { if (_handler.TryGetTarget(out var handler)) - handler.MauiContext?.CreateLogger()?.LogWarning(nameof(MauiWKWebView), $"Unable to Load Url {url}: {formatException}"); + handler.MauiContext?.CreateLogger()?.LogWarning($"Unable to Load Url {url}: {formatException}"); } } } catch (Exception exc) { if (_handler.TryGetTarget(out var handler)) - handler.MauiContext?.CreateLogger()?.LogWarning(nameof(MauiWKWebView), $"Unable to Load Url {url}: {exc}"); + handler.MauiContext?.CreateLogger()?.LogWarning($"Unable to Load Url {url}: {exc}"); } } @@ -194,7 +194,7 @@ bool LoadFile(string url) catch (Exception ex) { if (_handler.TryGetTarget(out var handler)) - handler.MauiContext?.CreateLogger()?.LogWarning(nameof(MauiWKWebView), $"Could not load {url} as local file: {ex}"); + handler.MauiContext?.CreateLogger()?.LogWarning($"Could not load {url} as local file: {ex}"); } return false;