1
0
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:
bakerboy448 2024-03-02 23:21:16 -06:00 committed by GitHub
parent 13af6f5779
commit e5f19f01fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
{