Add extra error logging on the RealDebrid GetClient.

This commit is contained in:
Roger Far 2023-09-20 19:55:08 -06:00
parent 9488eae8d1
commit 89efa76f76

View file

@ -45,6 +45,15 @@ public class RealDebridTorrentClient : ITorrentClient
return rdtNetClient;
}
catch (AggregateException ae)
{
foreach (var inner in ae.InnerExceptions)
{
_logger.LogError(inner, $"The connection to RealDebrid has failed: {inner.Message}");
}
throw;
}
catch (TaskCanceledException ex) when (ex.InnerException is TimeoutException)
{
_logger.LogError(ex, $"The connection to RealDebrid has timed out: {ex.Message}");