Update AddSeries Messaging and Logging

pull/6593/head
bakerboy448 2 months ago committed by GitHub
parent 13af6f5779
commit e5f19f01fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -78,13 +78,13 @@ namespace NzbDrone.Core.Tv
series.Added = added; series.Added = added;
if (existingSeriesTvdbIds.Any(f => f == series.TvdbId)) 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; continue;
} }
if (seriesToAdd.Any(f => f.TvdbId == series.TvdbId)) 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; continue;
} }
@ -104,7 +104,7 @@ namespace NzbDrone.Core.Tv
throw; 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) 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> throw new ValidationException(new List<ValidationFailure>
{ {

Loading…
Cancel
Save