updated indexer error logging

pull/3113/head
kay.one 13 years ago
parent 783f32a849
commit ada0a3bfbc

@ -193,18 +193,18 @@ namespace NzbDrone.Core.Providers.Indexer
{ {
if (webException.Message.Contains("503")) if (webException.Message.Contains("503"))
{ {
_logger.Warn("{0} server is currently unbelievable. {1}", Name, webException.Message); _logger.Warn("{0} server is currently unbelievable.{1} {2}", Name,url, webException.Message);
} }
else else
{ {
webException.Data.Add("FeedUrl", url); webException.Data.Add("FeedUrl", url);
_logger.ErrorException("An error occurred while processing feed: " + Name, webException); _logger.ErrorException("An error occurred while processing feed. " + url, 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: " + Name, feedEx); _logger.ErrorException("An error occurred while processing feed. " + url, feedEx);
} }
} }

@ -45,6 +45,7 @@
#changesOverview { #changesOverview {
margin-top: 15px; margin-top: 15px;
float: left; float: left;
font-size: 20px;
} }
</style> </style>
} }
@ -92,7 +93,7 @@
</div> </div>
</div> </div>
<div id="changesOverview" style="border-color: transparent;"> <div id="changesOverview" style="border-color: transparent;">
<h1><div id="editingCount"></div></h1> <div id="editingCount"></div>
</div> </div>
</div> </div>

Loading…
Cancel
Save