mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 02:09:59 +00:00
exceptionverification outputs exception info
This commit is contained in:
parent
a079c2732a
commit
32763b3667
1 changed files with 8 additions and 5 deletions
|
@ -94,11 +94,14 @@ private List<ReportInfo> Fetch(IIndexer indexer, IEnumerable<string> urls)
|
||||||
{
|
{
|
||||||
var result = new List<ReportInfo>();
|
var result = new List<ReportInfo>();
|
||||||
|
|
||||||
|
var body = "......";
|
||||||
|
|
||||||
foreach (var url in urls)
|
foreach (var url in urls)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_logger.Trace("Downloading Feed " + url);
|
_logger.Trace("Downloading Feed " + url);
|
||||||
|
body = _httpProvider.DownloadString(url);
|
||||||
var stream = _httpProvider.DownloadStream(url);
|
var stream = _httpProvider.DownloadStream(url);
|
||||||
result.AddRange(indexer.Parser.Process(stream));
|
result.AddRange(indexer.Parser.Process(stream));
|
||||||
}
|
}
|
||||||
|
@ -111,13 +114,13 @@ private List<ReportInfo> Fetch(IIndexer indexer, IEnumerable<string> urls)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
webException.Data.Add("FeedUrl", url);
|
webException.Data.Add("FeedUrl", url);
|
||||||
_logger.WarnException("An error occurred while processing feed. " + url, webException);
|
_logger.WarnException("An error occurred while processing feed. " + url + " " + body, webException);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception feedEx)
|
catch (Exception feedEx)
|
||||||
{
|
{
|
||||||
feedEx.Data.Add("FeedUrl", url);
|
feedEx.Data.Add("FeedUrl", url);
|
||||||
_logger.ErrorException("An error occurred while processing feed. " + url, feedEx);
|
_logger.ErrorException("An error occurred while processing feed. " + url + " " + body, feedEx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue