Skip to content

Commit

Permalink
refactor: less config logging (#23308)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 12, 2023
1 parent 2fbd472 commit 4bee881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/config/migrate-validate.ts
@@ -1,4 +1,5 @@
import is from '@sindresorhus/is';
import { dequal } from 'dequal';
import { logger } from '../logger';
import * as configMassage from './massage';
import * as configMigration from './migration';
Expand All @@ -21,7 +22,10 @@ export async function migrateAndValidate(
logger.debug('No config migration necessary');
}
const massagedConfig = configMassage.massageConfig(migratedConfig);
logger.debug({ config: massagedConfig }, 'massaged config');
// log only if it's changed
if (!dequal(input, massagedConfig)) {
logger.debug({ config: massagedConfig }, 'Post-massage config');
}
const {
warnings,
errors,
Expand Down
1 change: 0 additions & 1 deletion lib/workers/repository/init/merge.ts
Expand Up @@ -246,7 +246,6 @@ export async function mergeRenovateConfig(
}
delete migratedConfig.errors;
delete migratedConfig.warnings;
logger.debug({ config: migratedConfig }, 'migrated config');
// TODO #7154
const repository = config.repository!;
// Decrypt before resolving in case we need npm authentication for any presets
Expand Down

0 comments on commit 4bee881

Please sign in to comment.