From 32763b366733b43ca8272450122f0a607f3f23e5 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 5 Aug 2013 20:26:02 -0700 Subject: [PATCH] exceptionverification outputs exception info --- NzbDrone.Core/Indexers/IndexerFetchService.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core/Indexers/IndexerFetchService.cs b/NzbDrone.Core/Indexers/IndexerFetchService.cs index 29a634661..e5975bdec 100644 --- a/NzbDrone.Core/Indexers/IndexerFetchService.cs +++ b/NzbDrone.Core/Indexers/IndexerFetchService.cs @@ -94,13 +94,16 @@ private List Fetch(IIndexer indexer, IEnumerable urls) { var result = new List(); + var body = "......"; + foreach (var url in urls) { try { - _logger.Trace("Downloading Feed " + url); - var stream = _httpProvider.DownloadStream(url); - result.AddRange(indexer.Parser.Process(stream)); + _logger.Trace("Downloading Feed " + url); + body = _httpProvider.DownloadString(url); + var stream = _httpProvider.DownloadStream(url); + result.AddRange(indexer.Parser.Process(stream)); } catch (WebException webException) { @@ -111,13 +114,13 @@ private List Fetch(IIndexer indexer, IEnumerable urls) else { 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) { 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); } }