From a11561901e4395238eaac8e96265b1da83accfd6 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 10 Sep 2019 23:46:44 -0400 Subject: [PATCH] New: Improve logging when checking if release is an upgrade Co-Authored-By: Mark McDowall --- .../DecisionEngine/Specifications/UpgradableSpecification.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs index 0057b3f67..1711b7ccf 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradableSpecification.cs @@ -64,6 +64,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications private bool IsPreferredWordUpgradable(int currentScore, int newScore) { + _logger.Debug("Comparing preferred word score. Current: {0} New: {1}", currentScore, newScore); + return newScore > currentScore; } @@ -74,6 +76,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications if (qualityUpgrade == ProfileComparisonResult.Upgrade) { + _logger.Debug("New item has a better quality"); return true; } @@ -89,6 +92,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications return false; } + _logger.Debug("New item has a better preferred word score"); return true; }