mirror of https://github.com/lidarr/Lidarr
Better exception data for feed errors.
This commit is contained in:
parent
b4eed1a657
commit
9406ca9cf5
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue