Skip to content

Commit

Permalink
refactor: adjust some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Nov 4, 2024
1 parent b6333db commit 795ecbd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/quality-profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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.`);
}
}

Expand Down

0 comments on commit 795ecbd

Please sign in to comment.