From 714ce2640bdfbdb8b494a0bff5b16627da38b6c2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 20 Sep 2017 19:13:14 -0700 Subject: [PATCH] New: Log rejections/acceptance before importing files --- .../MediaFiles/EpisodeImport/ImportDecisionMaker.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs index aaa015915..8a131841a 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs @@ -129,6 +129,14 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport { _logger.Error("Unable to make a decision on {0}", file); } + else if (decision.Rejections.Any()) + { + _logger.Debug("File rejected for the following reasons: {0}", string.Join(", ", decision.Rejections)); + } + else + { + _logger.Debug("File accepted"); + } return decision; }