Updated NLog to v4.2.3.

This commit is contained in:
Taloth Saldono
2016-02-11 22:13:42 +01:00
parent e01b2ef25c
commit 6a90035a4c
144 changed files with 305 additions and 5579 deletions

View File

@@ -249,13 +249,13 @@ namespace NzbDrone.Core.Indexers
{
_indexerStatusService.RecordFailure(Definition.Id);
var message = string.Format("{0} - {1}", ex.Message, url);
_logger.WarnException(message, ex);
_logger.Warn(ex, message);
}
catch (Exception feedEx)
{
_indexerStatusService.RecordFailure(Definition.Id);
feedEx.Data.Add("FeedUrl", url);
_logger.ErrorException("An error occurred while processing feed. " + url, feedEx);
_logger.Error(feedEx, "An error occurred while processing feed. " + url);
}
return CleanupReleases(releases);
@@ -315,19 +315,19 @@ namespace NzbDrone.Core.Indexers
}
catch (UnsupportedFeedException ex)
{
_logger.WarnException("Indexer feed is not supported", ex);
_logger.Warn(ex, "Indexer feed is not supported");
return new ValidationFailure(string.Empty, "Indexer feed is not supported: " + ex.Message);
}
catch (IndexerException ex)
{
_logger.WarnException("Unable to connect to indexer", ex);
_logger.Warn(ex, "Unable to connect to indexer");
return new ValidationFailure(string.Empty, "Unable to connect to indexer. " + ex.Message);
}
catch (Exception ex)
{
_logger.WarnException("Unable to connect to indexer", ex);
_logger.Warn(ex, "Unable to connect to indexer");
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log for more details");
}