Update ImageLoader.cs

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

View file

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