Skip to content

Commit

Permalink
Fix the logging messages (#18518)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Nov 3, 2023
1 parent 5dcb340 commit 7be95d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/src/Platform/iOS/MauiWKWebView.cs
Expand Up @@ -128,14 +128,14 @@ async Task LoadUrlAsync(string? url)
if (!LoadFile(url))
{
if (_handler.TryGetTarget(out var handler))
handler.MauiContext?.CreateLogger<MauiWKWebView>()?.LogWarning(nameof(MauiWKWebView), $"Unable to Load Url {url}: {formatException}");
handler.MauiContext?.CreateLogger<MauiWKWebView>()?.LogWarning($"Unable to Load Url {url}: {formatException}");
}
}
}
catch (Exception exc)
{
if (_handler.TryGetTarget(out var handler))
handler.MauiContext?.CreateLogger<MauiWKWebView>()?.LogWarning(nameof(MauiWKWebView), $"Unable to Load Url {url}: {exc}");
handler.MauiContext?.CreateLogger<MauiWKWebView>()?.LogWarning($"Unable to Load Url {url}: {exc}");
}
}

Expand Down Expand Up @@ -194,7 +194,7 @@ bool LoadFile(string url)
catch (Exception ex)
{
if (_handler.TryGetTarget(out var handler))
handler.MauiContext?.CreateLogger<MauiWKWebView>()?.LogWarning(nameof(MauiWKWebView), $"Could not load {url} as local file: {ex}");
handler.MauiContext?.CreateLogger<MauiWKWebView>()?.LogWarning($"Could not load {url} as local file: {ex}");
}

return false;
Expand Down

0 comments on commit 7be95d4

Please sign in to comment.