1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Update series logging improvements

This commit is contained in:
Mark McDowall 2014-04-09 21:37:52 -07:00
parent 3f4c1a16f8
commit 073b496197

View File

@ -196,8 +196,10 @@ public Series UpdateSeries(Series series)
public List<Series> UpdateSeries(List<Series> series) public List<Series> UpdateSeries(List<Series> series)
{ {
_logger.Debug("Updating {0} series", series.Count);
foreach (var s in series) foreach (var s in series)
{ {
_logger.Trace("Updating: {0}", s.Title);
if (!s.RootFolderPath.IsNullOrWhiteSpace()) if (!s.RootFolderPath.IsNullOrWhiteSpace())
{ {
var folderName = new DirectoryInfo(s.Path).Name; var folderName = new DirectoryInfo(s.Path).Name;
@ -211,7 +213,6 @@ public List<Series> UpdateSeries(List<Series> series)
} }
} }
_logger.Debug("Updating {0} series", series.Count);
_seriesRepository.UpdateMany(series); _seriesRepository.UpdateMany(series);
_logger.Debug("{0} series updated", series.Count); _logger.Debug("{0} series updated", series.Count);