From 285288db1a49fde28f9b997b06f16c36293ebb48 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 24 May 2017 21:57:04 -0700 Subject: [PATCH] Additional logging when an import decision cannot be made --- .../MediaFiles/EpisodeImport/ImportDecisionMaker.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs index 41385d342..1931e9a04 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/ImportDecisionMaker.cs @@ -118,6 +118,11 @@ private ImportDecision GetDecision(string file, Series series, DownloadClientIte decision = new ImportDecision(localEpisode, new Rejection("Unexpected error processing file")); } + if (decision == null) + { + _logger.Error("Unable to make a decision on {0}", file); + } + return decision; }