1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

don't log indexer errors as exceptions.

This commit is contained in:
kay.one 2013-08-29 18:38:43 -07:00
parent a22cbfee2f
commit 47e29abc27

View File

@ -119,14 +119,13 @@ private List<ReportInfo> Fetch(IIndexer indexer, IEnumerable<string> urls)
} }
catch (WebException webException) catch (WebException webException)
{ {
if (webException.Message.Contains("503") || webException.Message.Contains("timed out")) if (webException.Message.Contains("502") || webException.Message.Contains("503") || webException.Message.Contains("timed out"))
{ {
_logger.Warn("{0} server is currently unavailable. {1} {2}", indexer.Name, url, webException.Message); _logger.Warn("{0} server is currently unavailable. {1} {2}", indexer.Name, url, webException.Message);
} }
else else
{ {
webException.Data.Add("FeedUrl", url); _logger.Warn("{0} {1} {2}", indexer.Name, url, webException.Message);
_logger.WarnException("An error occurred while processing feed. " + url, webException);
} }
} }
catch (Exception feedEx) catch (Exception feedEx)