More detailed logging for file importing/upgrades.
This commit is contained in:
parent
a48cef49f5
commit
649c5013b5
|
@ -145,7 +145,7 @@ namespace NzbDrone.Core.Providers
|
||||||
//Make sure this file is an upgrade for ALL episodes already on disk
|
//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))
|
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
|
//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));
|
episodes.Where(e => e.EpisodeFile != null).Select(e => e.EpisodeFile.Path).Distinct().ToList().ForEach(p => _recycleBinProvider.DeleteFile(p));
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ namespace NzbDrone.Core.Providers
|
||||||
|
|
||||||
if (String.IsNullOrWhiteSpace(recyclingBin))
|
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);
|
_diskProvider.DeleteFolder(path, true);
|
||||||
logger.Trace("Folder has been permanently deleted: {0}", path);
|
logger.Trace("Folder has been permanently deleted: {0}", path);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ namespace NzbDrone.Core.Providers
|
||||||
|
|
||||||
if (String.IsNullOrWhiteSpace(recyclingBin))
|
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);
|
_diskProvider.DeleteFile(path);
|
||||||
logger.Trace("File has been permanently deleted: {0}", path);
|
logger.Trace("File has been permanently deleted: {0}", path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue