Skip to content

Commit 795ecbd

Browse files
committed
refactor: adjust some logging
1 parent b6333db commit 795ecbd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/quality-profiles.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ export const calculateQualityProfilesDiff = async (
479479
logger.info(`No scoring for QualityProfile ${serverMatch.name!} found`);
480480
}
481481

482-
logger.debug(`QualityProfile (${value.name}) - CF Changes: ${scoringDiff}, Some other diff: ${diffExist}`);
482+
logger.debug(
483+
`QualityProfile (${value.name}) - In Sync: ${changeList.length <= 0}, CF Changes: ${scoringDiff}, Some other diff: ${diffExist}`,
484+
);
483485

484486
if (scoringDiff || diffExist) {
485487
changedQPs.push(updatedServerObject);
@@ -488,10 +490,7 @@ export const calculateQualityProfilesDiff = async (
488490
}
489491

490492
if (changeList.length > 0) {
491-
logger.debug(`QualityProfile (${value.name}) is not in sync. Will be updated.`);
492493
logger.debug(changeList, `ChangeList for QualityProfile`);
493-
} else {
494-
logger.debug(`QualityProfile (${value.name}) is in sync.`);
495494
}
496495
}
497496

0 commit comments

Comments
 (0)