mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Updated NLog to v4.2.3.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user