From 93c8de973962156cb5eedc9c9c7d95d35c5f089f Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Mon, 11 Sep 2023 15:04:46 -0500 Subject: [PATCH] fix: Print score instead of object --- CHANGELOG.md | 1 + .../QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ea911a9..7a058f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Service failures (e.g. HTTP 500) no longer cause exceptions (#206). - Error out when duplicate instance names are used. +- Print score instead of object in duplicate score detection warning [includes]: https://recyclarr.dev/wiki/yaml/config-reference/include/ [listoption]: http://recyclarr.dev/wiki/cli/config/list/templates/#include diff --git a/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs b/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs index ad80a702..6e065d62 100644 --- a/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs +++ b/src/Recyclarr.Cli/Pipelines/QualityProfile/PipelinePhases/QualityProfileConfigPhase.cs @@ -114,7 +114,7 @@ public class QualityProfileConfigPhase _log.Warning( "Custom format {Name} ({TrashId}) is duplicated in quality profile {ProfileName} with a score " + "of {NewScore}, which is different from the original score of {OriginalScore}", - cf.Name, cf.TrashId, scoreConfig.Name, scoreToUse, existingScore); + cf.Name, cf.TrashId, scoreConfig.Name, scoreToUse, existingScore.Score); } else {