mirror of
https://github.com/Readarr/Readarr
synced 2026-01-06 07:40:49 +01:00
New: Improve logging when checking if release is an upgrade
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
a99ee41f38
commit
747ed0af84
1 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ private ProfileComparisonResult IsQualityUpgradable(QualityProfile profile, List
|
|||
|
||||
private bool IsPreferredWordUpgradable(int currentScore, int newScore)
|
||||
{
|
||||
_logger.Debug("Comparing preferred word score. Current: {0} New: {1}", currentScore, newScore);
|
||||
|
||||
return newScore > currentScore;
|
||||
}
|
||||
|
||||
|
|
@ -74,6 +76,7 @@ public bool IsUpgradable(QualityProfile qualityProfile, List<QualityModel> curre
|
|||
|
||||
if (qualityUpgrade == ProfileComparisonResult.Upgrade)
|
||||
{
|
||||
_logger.Debug("New item has a better quality");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -89,6 +92,7 @@ public bool IsUpgradable(QualityProfile qualityProfile, List<QualityModel> curre
|
|||
return false;
|
||||
}
|
||||
|
||||
_logger.Debug("New item has a better preferred word score");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue