mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Improve logging when rejecting release with unmonitored episodes
This commit is contained in:
parent
699076a405
commit
0d22f9ec29
1 changed files with 17 additions and 3 deletions
|
@ -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)
|
||||||
|
{
|
||||||
|
_logger.Debug("Episode is not monitored. Rejecting", monitoredCount, subject.Episodes.Count);
|
||||||
return Decision.Reject("Episode is not monitored");
|
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…
Add table
Add a link
Reference in a new issue