From 492ffb571453a4f294c25b219ced6b0c2c5d70d1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 8 Apr 2014 15:41:14 -0700 Subject: [PATCH] Added more logging for series editor --- src/NzbDrone.Core/Tv/SeriesService.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Tv/SeriesService.cs b/src/NzbDrone.Core/Tv/SeriesService.cs index b2cbf8ff6..920ad701e 100644 --- a/src/NzbDrone.Core/Tv/SeriesService.cs +++ b/src/NzbDrone.Core/Tv/SeriesService.cs @@ -3,6 +3,7 @@ using System.IO; using System.Linq; using NLog; +using NzbDrone.Common; using NzbDrone.Common.EnsureThat; using NzbDrone.Core.DataAugmentation.Scene; using NzbDrone.Core.Messaging.Events; @@ -197,14 +198,22 @@ public List UpdateSeries(List series) { foreach (var s in series) { - if (!String.IsNullOrWhiteSpace(s.RootFolderPath)) + if (!s.RootFolderPath.IsNullOrWhiteSpace()) { var folderName = new DirectoryInfo(s.Path).Name; s.Path = Path.Combine(s.RootFolderPath, folderName); + _logger.Trace("Changing path for {0} to {1}", s.Title, s.Path); + } + + else + { + _logger.Trace("Not changing path for: {0}", s.Title); } } + _logger.Debug("Updating {0} series", series.Count); _seriesRepository.UpdateMany(series); + _logger.Debug("{0} series updated", series.Count); return series; }