mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Rework Multiple Logging Statements
This commit is contained in:
parent
cbb2802383
commit
7dc629a647
@ -255,7 +255,7 @@ protected virtual IList<ReleaseInfo> FetchReleases(Func<IIndexerRequestGenerator
|
||||
{
|
||||
_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 @@ private void EnsureCovers(Movie movie, int retried = 0)
|
||||
{
|
||||
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 @@ protected virtual NetImportFetchResult FetchMovies(NetImportPageableRequestChain
|
||||
{
|
||||
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 @@ public virtual IList<Movie> ParseResponse(NetImportResponse importResponse)
|
||||
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…
Reference in New Issue
Block a user