Fixed: Rework Multiple Logging Statements

pull/2/head
Qstick 5 years ago
parent cbb2802383
commit 7dc629a647

@ -255,7 +255,7 @@ namespace NzbDrone.Core.Indexers
{
_indexerStatusService.RecordFailure(Definition.Id);
ex.WithData("FeedUrl", url);
_logger.Error(ex, "An error occurred while processing feed. {0}", url);
_logger.Error(ex, "An error occurred while processing indexer feed. {0}", url);
}
return CleanupReleases(releases);

@ -110,11 +110,11 @@ namespace NzbDrone.Core.MediaCover
{
if (e.Status == WebExceptionStatus.ProtocolError)
{
_logger.Warn(e, string.Format("Couldn't download media cover for {0}, likely the cover doesn't exist for this movie. {1}", movie, e.Message));
_logger.Warn(e, "Couldn't download media cover for {0}, likely the cover doesn't exist for this movie. {1}", movie, e.Message);
}
else
{
_logger.Warn(e, string.Format("Couldn't download media cover for {0}. {1}", movie, e.Message));
_logger.Warn(e, "Couldn't download media cover for {0}. {1}", movie, e.Message);
if (retried < 3)
{
retried += 1;

@ -102,7 +102,7 @@ namespace NzbDrone.Core.NetImport
{
anyFailure = true;
feedEx.Data.Add("FeedUrl", url);
_logger.Error(feedEx, "An error occurred while processing feed. " + url);
_logger.Error(feedEx, "An error occurred while processing list feed {0}", url);
}
return new NetImportFetchResult {Movies = movies, AnyFailure = anyFailure};

@ -54,7 +54,7 @@ namespace NzbDrone.Core.NetImport.RSSImport
catch (Exception itemEx)
{
//itemEx.Data.Add("Item", item.Title());
_logger.Error(itemEx, "An error occurred while processing feed item from " + importResponse.Request.Url);
_logger.Error(itemEx, "An error occurred while processing list feed item from {0}", importResponse.Request.Url);
}
}

Loading…
Cancel
Save