From fa0f77659cbd3e9efdae55bbedb30fd8288622a6 Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Sat, 11 Jan 2025 02:06:05 +0100 Subject: [PATCH] Additional logging for delay profile decisions Closes #7558 --- .../Specifications/RssSync/DelaySpecification.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs index 1a9339bb3..cb7cd6cc0 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs @@ -41,10 +41,12 @@ public virtual DownloadSpecDecision IsSatisfiedBy(RemoteEpisode subject, SearchC if (delay == 0) { - _logger.Debug("QualityProfile does not require a waiting period before download for {0}.", subject.Release.DownloadProtocol); + _logger.Debug("Delay Profile does not require a waiting period before download for {0}.", subject.Release.DownloadProtocol); return DownloadSpecDecision.Accept(); } + _logger.Debug("Delay Profile requires a waiting period of {0} minutes for {1}", delay, subject.Release.DownloadProtocol); + var qualityComparer = new QualityModelComparer(qualityProfile); if (isPreferredProtocol) @@ -95,6 +97,7 @@ public virtual DownloadSpecDecision IsSatisfiedBy(RemoteEpisode subject, SearchC if (oldest != null && oldest.Release.AgeMinutes > delay) { + _logger.Debug("Oldest pending release {0} has been delayed for {1}, longer than the set delay of {2}. Release will be accepted", oldest.Release.Title, oldest.Release.AgeMinutes, delay); return DownloadSpecDecision.Accept(); }