mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-29 23:12:39 +01:00
Update AddSeries Messaging and Logging
This commit is contained in:
parent
13af6f5779
commit
e5f19f01fa
@ -78,13 +78,13 @@ namespace NzbDrone.Core.Tv
|
||||
series.Added = added;
|
||||
if (existingSeriesTvdbIds.Any(f => f == series.TvdbId))
|
||||
{
|
||||
_logger.Debug("TVDB ID {0} was not added due to validation failure: Series already exists in database", s.TvdbId);
|
||||
_logger.Debug("TVDB ID {0} was not added due to validation failure: Series {1} already exists in database", s.TvdbId, s);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (seriesToAdd.Any(f => f.TvdbId == series.TvdbId))
|
||||
{
|
||||
_logger.Debug("TVDB ID {0} was not added due to validation failure: Series already exists on list", s.TvdbId);
|
||||
_logger.Trace("TVDB ID {0} was already added from another import list, not adding series {1} again", s.TvdbId, s);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@ namespace NzbDrone.Core.Tv
|
||||
throw;
|
||||
}
|
||||
|
||||
_logger.Debug("TVDB ID {0} was not added due to validation failures. {1}", s.TvdbId, ex.Message);
|
||||
_logger.Debug("Series {0} with TVDB ID {1} was not added due to validation failures. {2}", s, s.TvdbId, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
@ -121,7 +121,7 @@ namespace NzbDrone.Core.Tv
|
||||
}
|
||||
catch (SeriesNotFoundException)
|
||||
{
|
||||
_logger.Error("TVDB ID {0} was not found, it may have been removed from TheTVDB. Path: {1}", newSeries.TvdbId, newSeries.Path);
|
||||
_logger.Error("Series {0} with TVDB ID {1} was not found, it may have been removed from TheTVDB. Path: {2}", newSeries, newSeries.TvdbId, newSeries.Path);
|
||||
|
||||
throw new ValidationException(new List<ValidationFailure>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user