mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
Improve logging when rejecting release with unmonitored episodes
This commit is contained in:
parent
699076a405
commit
0d22f9ec29
@ -30,7 +30,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
|
|||||||
|
|
||||||
if (!subject.Series.Monitored)
|
if (!subject.Series.Monitored)
|
||||||
{
|
{
|
||||||
_logger.Debug("{0} is present in the DB but not tracked. skipping.", subject.Series);
|
_logger.Debug("{0} is present in the DB but not tracked. Rejecting", subject.Series);
|
||||||
return Decision.Reject("Series is not monitored");
|
return Decision.Reject("Series is not monitored");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,8 +40,22 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
|
|||||||
return Decision.Accept();
|
return Decision.Accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.Debug("Only {0}/{1} episodes are monitored. skipping.", monitoredCount, subject.Episodes.Count);
|
if (subject.Episodes.Count == 1)
|
||||||
return Decision.Reject("Episode is not monitored");
|
{
|
||||||
|
_logger.Debug("Episode is not monitored. Rejecting", monitoredCount, subject.Episodes.Count);
|
||||||
|
return Decision.Reject("Episode is not monitored");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (monitoredCount == 0)
|
||||||
|
{
|
||||||
|
_logger.Debug("No episodes in the release are monitored. Rejecting", monitoredCount, subject.Episodes.Count);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_logger.Debug("Only {0}/{1} episodes in the release are monitored. Rejecting", monitoredCount, subject.Episodes.Count);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Decision.Reject("One or more episodes is not monitored");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user