Better trace messaging for Download Decision specs

Fixed: Trace logs will contain more details when a release is rejected
This commit is contained in:
Mark McDowall
2014-02-05 16:55:19 -08:00
parent 2b5c512d64
commit d648056bc4
7 changed files with 20 additions and 5 deletions

View File

@@ -40,7 +40,12 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
var queue = downloadClient.GetQueue().Select(q => q.RemoteEpisode);
return !IsInQueue(subject, queue);
if (IsInQueue(subject, queue))
{
_logger.Trace("Already in queue, rejecting.");
}
return true;
}
private bool IsInQueue(RemoteEpisode newEpisode, IEnumerable<RemoteEpisode> queue)