From 7be95d4e895af0f225f63c8a65fb04f2528e5fa3 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Sat, 4 Nov 2023 00:46:37 +0200 Subject: [PATCH] Fix the logging messages (#18518) --- src/Core/src/Platform/iOS/MauiWKWebView.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;