You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-07-15 01:25:05 +02:00
Progress messaging updates as each report is processed
This commit is contained in:
@ -44,17 +44,20 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
{
|
||||
if (reports.Any())
|
||||
{
|
||||
_logger.Progress("Processing {0} reports", reports.Count());
|
||||
_logger.Progress("Processing {0} reports", reports.Count);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
_logger.Progress("No reports found");
|
||||
}
|
||||
|
||||
|
||||
var reportNumber = 1;
|
||||
|
||||
foreach (var report in reports)
|
||||
{
|
||||
DownloadDecision decision = null;
|
||||
_logger.Progress("Processing report {0}/{1}", reportNumber, reports.Count);
|
||||
|
||||
try
|
||||
{
|
||||
@ -80,6 +83,8 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
_logger.ErrorException("Couldn't process report.", e);
|
||||
}
|
||||
|
||||
reportNumber++;
|
||||
|
||||
if (decision != null)
|
||||
{
|
||||
yield return decision;
|
||||
|
Reference in New Issue
Block a user