From 649c5013b5c01617cebbc56314d259afffe8ee95 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 27 Mar 2013 08:31:11 -0700 Subject: [PATCH] More detailed logging for file importing/upgrades. --- NzbDrone.Core/Providers/DiskScanProvider.cs | 2 +- NzbDrone.Core/Providers/RecycleBinProvider.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/Providers/DiskScanProvider.cs b/NzbDrone.Core/Providers/DiskScanProvider.cs index bf23acc79..ca31af565 100644 --- a/NzbDrone.Core/Providers/DiskScanProvider.cs +++ b/NzbDrone.Core/Providers/DiskScanProvider.cs @@ -145,7 +145,7 @@ namespace NzbDrone.Core.Providers //Make sure this file is an upgrade for ALL episodes already on disk if (episodes.All(e => e.EpisodeFile == null || e.EpisodeFile.QualityWrapper < parseResult.Quality)) { - Logger.Debug("Deleting the existing file(s) on disk to upgrade to: {0}", filePath); + Logger.Info("Deleting the existing file(s) on disk to upgrade to: {0}", filePath); //Do the delete for files where there is already an episode on disk episodes.Where(e => e.EpisodeFile != null).Select(e => e.EpisodeFile.Path).Distinct().ToList().ForEach(p => _recycleBinProvider.DeleteFile(p)); } diff --git a/NzbDrone.Core/Providers/RecycleBinProvider.cs b/NzbDrone.Core/Providers/RecycleBinProvider.cs index 3d1bd4757..38e475c4e 100644 --- a/NzbDrone.Core/Providers/RecycleBinProvider.cs +++ b/NzbDrone.Core/Providers/RecycleBinProvider.cs @@ -33,7 +33,7 @@ namespace NzbDrone.Core.Providers if (String.IsNullOrWhiteSpace(recyclingBin)) { - logger.Info("Recycling Bin has not been configured, deleting permanently."); + logger.Info("Recycling Bin has not been configured, deleting permanently. {0}", path); _diskProvider.DeleteFolder(path, true); logger.Trace("Folder has been permanently deleted: {0}", path); } @@ -63,7 +63,7 @@ namespace NzbDrone.Core.Providers if (String.IsNullOrWhiteSpace(recyclingBin)) { - logger.Info("Recycling Bin has not been configured, deleting permanently."); + logger.Info("Recycling Bin has not been configured, deleting permanently. {0}", path); _diskProvider.DeleteFile(path); logger.Trace("File has been permanently deleted: {0}", path); }