Update ImageLoader.cs

This commit is contained in:
ClemensFischer 2025-08-21 12:14:31 +02:00
parent bf6d7ac115
commit 00a885b654

View file

@ -117,10 +117,17 @@ namespace MapControl
} }
} }
} }
catch (OperationCanceledException) catch (OperationCanceledException ex)
{
if (ex.InnerException is TimeoutException timeout)
{
Logger?.LogError(timeout, "Failed loading image from {uri}", uri);
}
else
{ {
Logger?.LogTrace("Cancelled loading image from {uri}", uri); Logger?.LogTrace("Cancelled loading image from {uri}", uri);
} }
}
catch (Exception ex) catch (Exception ex)
{ {
Logger?.LogError(ex, "Failed loading image from {uri}", uri); Logger?.LogError(ex, "Failed loading image from {uri}", uri);