From 795ecbd2baf9dfbd0a448763b74e838d01c8c904 Mon Sep 17 00:00:00 2001 From: Eduard Marbach Date: Mon, 4 Nov 2024 11:45:54 +0100 Subject: [PATCH] refactor: adjust some logging --- src/quality-profiles.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/quality-profiles.ts b/src/quality-profiles.ts index 11f118f..4552a14 100644 --- a/src/quality-profiles.ts +++ b/src/quality-profiles.ts @@ -479,7 +479,9 @@ export const calculateQualityProfilesDiff = async ( logger.info(`No scoring for QualityProfile ${serverMatch.name!} found`); } - logger.debug(`QualityProfile (${value.name}) - CF Changes: ${scoringDiff}, Some other diff: ${diffExist}`); + logger.debug( + `QualityProfile (${value.name}) - In Sync: ${changeList.length <= 0}, CF Changes: ${scoringDiff}, Some other diff: ${diffExist}`, + ); if (scoringDiff || diffExist) { changedQPs.push(updatedServerObject); @@ -488,10 +490,7 @@ export const calculateQualityProfilesDiff = async ( } if (changeList.length > 0) { - logger.debug(`QualityProfile (${value.name}) is not in sync. Will be updated.`); logger.debug(changeList, `ChangeList for QualityProfile`); - } else { - logger.debug(`QualityProfile (${value.name}) is in sync.`); } }