Better exception data for feed errors.

This commit is contained in:
kay.one 2012-01-18 18:08:17 -08:00
parent b4eed1a657
commit 9406ca9cf5
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,8 @@ namespace NzbDrone.Core.Providers.Indexer
} }
catch (Exception itemEx) catch (Exception itemEx)
{ {
itemEx.Data.Add("FeedUrl", url);
itemEx.Data.Add("Item", item.Title);
_logger.ErrorException("An error occurred while processing feed item", itemEx); _logger.ErrorException("An error occurred while processing feed item", itemEx);
} }
@ -186,6 +188,7 @@ namespace NzbDrone.Core.Providers.Indexer
} }
catch (Exception feedEx) catch (Exception feedEx)
{ {
feedEx.Data.Add("FeedUrl", url);
_logger.ErrorException("An error occurred while processing feed: " + Name, feedEx); _logger.ErrorException("An error occurred while processing feed: " + Name, feedEx);
} }
} }